Milan Berta wrote:
[post rordered to reflect bottom-posting]
On Fri Mar 09, 2007 at 04:30:03PM +0100, A.J.Mechelynck wrote:
[...]
Apparently, to change keymaps in a buffer where a keymap is defined, you need to clear both the 'keymap' and 'iminsert' options:

        :setlocal keymap=esperanto
        :setlocal keymap= iminsert=0 keymap=accents

works (%k on the status line shows <acc> which is the b:keymap_name for the "accents" keymap).

Note that setting 'keymap' (from empty to nonempty) also sets 'iminsert' (from 0 to 1).


Best regards,
Tony.

> Thanks, Tony, it works. It should be documented or mentioned. :help
> iminsert says nothing about it, as far as I understand.
>
> Rergs,
> Milan
>

I think the reason for the need to reset 'keymap' and 'iminsert' (before setting 'keymap' to something else) is not mentioned, is that it's a bug.

The fact that setting 'keymap' also sets 'iminsert' to one, is mentioned under ":help 'keymap'".


Best regards,
Tony.
--
"By the time they had diminished from 50 to 8, the other dwarves began
to suspect 'Hungry' ..."
                -- Gary Larson, "The Far Side"

Reply via email to