Loading ...
Sorry, an error occurred while loading the content.

38520Re: special characters, besides digraphs

Expand Messages
  • Antoine J. Mechelynck
    Mar 31, 2003
    • 0 Attachment
      Steve Felt <sfelt@...> wrote:
      > Hello all,
      >
      > 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...
      >
      > ga
      > 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//
      >
      > thanks,
      >
      > steve

      see :help i_CTRL-V_digit

      ...and if your Ctrl-V does a paste, use Ctrl-Q instead.

      HTH,
      Tony.
    • Show all 4 messages in this topic