Re: toggling keymap in normal mode
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.