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

Re: toggling keymap in normal mode

Expand Messages
  • Alexey Marinichev
    On Thu, Apr 05, 2001 at 11:38:51AM +0400, Andrew Rodionoff wrote: [...] ... [...] Thanks. My research ended up with the following: imap :set
    Message 1 of 9 , Apr 6, 2001
    • 0 Attachment
      On Thu, Apr 05, 2001 at 11:38:51AM +0400, Andrew Rodionoff wrote:
      [...]
      > I manage my keymaps with simple plugin script attached to this msg. I hope
      > its comments are sufficient to understand how it works. I've also included my
      > Russian keymap file as a reference to newbie i18n keymap users.
      [...]

      Thanks. My research ended up with the following:
      imap <C-^> <esc>:set keymap=my_wacky_keymap <bar> iunmap <C-V><C-^><cr>a

      When <C-^> is used the first time in insert mode, it assigns keymap
      value and unmaps itself. Seems to work. Does exactly what I want.

      --Lyosha
    Your message has been successfully submitted and would be delivered to recipients shortly.