Yongwei Wu wrote:
This behaviour shows up in both vim and gvim. I tested on Windows.

When I choose a keymap using either the menu or "set keymap=...", and
later clear it with the menu or "set keymap=", the prompt in insert
mode is still "-- INSERT (lang) --".

Is there a reason for this behaviour? I would expect the prompt
changes back to "-- INSERT --".

Best regards,

Yongwei


The prompt -- INSERT (lang) -- is due to the fact that clearing the 'keymap' option doesn't clear the 'iminsert' option, which had been set to 1 automatically when a nonempty 'keymap' had been set.

To enable keymaps for the current editfile, use

        :setlocal keymap=<something>

To disable them, use

        :setlocal iminsert=0 keymap=


Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
110. You actually volunteer to become your employer's webmaster.

Reply via email to