351Switching XIM on and off
- Mar 5, 2001In Vim 6.0w the ":lmap" or language maps are used in Insert mode and other
places where text is typed. For example when entering a search string.
For the Win32 IME there is code to automatically switch the input method
between English mode and Origin mode. I wonder why that isn't done for XIM.
Should we automatically enable XIM in Insert mode and disable it in Normal
mode? That sounds logical, since Vim commands are English letters.
The CTRL-^ command that is used to switch the ":lmap" language maps on/off
is remembered for Insert mode. Thus if you exit Insert mode with <Esc> and
start it again with "i", then the last state of using the language maps is
restored. That could be used for XIM too (although I don't know how to obtain
the current on/off state of the XIM).
hundred-and-one symptoms of being an internet addict:
60. As your car crashes through the guardrail on a mountain road, your first
instinct is to search for the "back" button.
/// 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 ///
- Next post in topic >>