19475Re: toggling keymap in normal mode
- Apr 3, 2001Alexey Marinichev wrote:
> I use vim as an editor to compose emails. Sometimes I write in EnglishThe current support of 'keymap' is for what most people would need. If you
> and sometimes in Russian. I do not know in advance which language it
> will be. Right now, I have to type :set keymap=something once before I
> can type cyrillic. That's annoying. I just want C-^ to always work.
> Imapping C-^ to clever combination of setting keymap and unmapping C-^
> is just too hacky, is it not?
start editing a Russian file, you select the Russian 'keymap'. That should be
easy and straightforward.
If you want to switch the 'keymap' on/off for specific situations, like when
editing an e-mail that contains a MIME note about the charset, feel free to
make any mapping, script and function that you need. The most obvious would
:map <F4> :set keymap=russian<CR>
:map <F5> :set keymap=<CR>
Actually, if there would be an option to enable/disable the keymap, this would
probably end up being used with a mapping as well.
Often you're less important than your furniture. If you think about it, you
can get fired but your furniture stays behind, gainfully employed at the
company that didn't need _you_ anymore.
(Scott Adams - The Dilbert principle)
/// Bram Moolenaar -- Bram@... -- http://www.moolenaar.net \\\
((( Creator of Vim - http://www.vim.org -- ftp://ftp.vim.org/pub/vim )))
\\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///
- << Previous post in topic Next post in topic >>