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

Re: keymap problem, mapping '2' and '6' to Char

Expand Messages
  • Tony Mechelynck
    ... Since the lines after :loadkeymap are mappings (albeit in a special format), you could also use 2 2 literal digit two Best regards, Tony. -- Kill
    Message 1 of 4 , Oct 12, 2007
    • 0 Attachment
      Kenneth Beesley wrote:
      >
      > MEA CULPA, MEA MAXIMA CULPA. I found the error in my keymap file,
      > which was mapping
      >
      > 2 <Char-0x10432>
      >
      > and later, in the same keymap file, I had
      >
      > \2 2
      >
      > with the _intent_ that the latter would allow me to enter a literal 2
      > by typing
      > backslash 2. But the single backslash in \2 simply literalizes the 2 in
      > the keymap (unnecessarily), with the effect of redefining 2. The
      > correct
      > entry
      >
      > \\2 2
      >
      > allows me to enter a literal 2 by typing backslash 2 in INSERT mode,
      > fixing the problem.
      >
      > Thanks to Nico and all others who responded.
      >
      > Ken

      Since the lines after :loadkeymap are mappings (albeit in a special format),
      you could also use

      <Bslash>2 2 literal digit two


      Best regards,
      Tony.
      --
      Kill a commie for Christ!

      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_multibyte" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    Your message has been successfully submitted and would be delivered to recipients shortly.