On 19/04/11 09:38, pansz wrote:
According to
:h CursorIM
Cursor will use CursorIM color when IME/XIM active, and back to Cursor
color when IME disabled.
When we have an internal vim script acting as IME/XIM, we need to set
the Cursor to IME mode with vim script, is it possible?
I *think* that it works by using CursorIM when 'iminsert' (local to
buffer) is 2, which would mean that the whole machinery to invoke an
*external* IME or XIM would then come into play whenever Vim is ready to
accept a new input character.
If you don't have keymaps or language-mappings in the buffers where your
"pseudo-IM" script is used (or if they only come into play when the
script is active), you could set 'iminsert' to 1 instead, and use the
lCursor highlight. In the standard statusline, this same setting would
also display the value of b:keymap_name within < and > near the right
end of the concerned status line (or <lang> if unset) when the setting
is on, even in Normal mode where typed-in characters (other than the
operand of r f t etc.) are interpreted without using keymaps or
language-mappings. You could put that to advantage to display the name
of your IM script in the status lines of the windows for the buffers
which use it.
Best regards,
Tony.
--
It is difficult to produce a television documentary that is both
incisive and probing when every twelve minutes one is interrupted by
twelve dancing rabbits singing about toilet paper.
-- Rod Serling
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php