38520Re: special characters, besides digraphs
- Mar 31, 2003Steve Felt <sfelt@...> wrote:
> Hello all,see :help i_CTRL-V_digit
> How do I type in characters which are not in the keyboard? For
> example, I often copy text into vim from other programs, and it puts
> in characters that look like ' or ` or " (like the html ‘,
> ’ ” “ but they're not those characters...
> gives me:
> <”> 8221, Hex 201d, Octal 20035
> They're not defined under :he digraphs (thanks Valeriu Kondakoffu for
> the tip).
> I end up recording a macro to replace each character (of the 5-10
> weirdos) by (1) positioning cursor over character (2) hitting '*' key
> (3) hitting / and scrolling back to previous search (4) removing \<
> and \> (5) hitting q (6) ... recording macro: ns... (7) ending macro
> with q
> So, how can I figure out what the weird character is and type it in
> for substitution --- :s//
...and if your Ctrl-V does a paste, use Ctrl-Q instead.
- << Previous post in topic Next post in topic >>