19474Re: toggling keymap in normal mode
- Apr 3, 2001On Tue, Apr 03, 2001 at 08:45:18PM +0200, Bram Moolenaar wrote:
>Also "f" and "F". That's the whole point of lmaps, to have remapping
> Alexey Marinichev wrote:
> > How do I toggle keyboard map set by 'keymap' option from the normal
> > mode? There isn't anything simpler than :normal a <Ctrl-^> <Esc> <CR>,
> > is there?
> No, since the mappings only take effect in Insert mode, it's logical that you
> can only enable/disable them from Insert mode. Well, except when you want to
> use "r".
> > Related issue: if I set 'keymap' option, keyboard gets remapped. ItIt doesn't have to be an option. I'm file with normal mode command that
> > would be nice to be able to set the option and leave the keyboard in its
> > unmapped state, to have Ctrl-^ switch the mappings.
> Pff, yet another option?
switches mapping, then I could do :normal g<C-^> or whatever it would
> Why do you first tell Vim to map keys for your language and then say "but II use vim as an editor to compose emails. Sometimes I write in English
> don't want to use them"? Perhaps you should postpone loading them until you
> really want to use them.
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?
- << Previous post in topic Next post in topic >>