In gui we can define color with :highlight command.

Script can use highlight command to change color, however, if a script meant to change one color temporarily, it has no knowledge about the previous setting.

1. the :hi Cursor is defined by my color scheme.
2. now in some case a script change the cursor color to indicate a special mode. 3. when the mode ends, the script want to change the Cursor back but it has no knowledge about what is the highlight of Cursor defined by user's color scheme.


This rises from our script vimim, this implements an IME inside vim and we may need to change the Cursor color to indicate IM mode and change the Cursor color back. CursorIM is the best color group for this but we have no command to let vim show Curor with CursorIM, the only way is to redefine the :highlight of Cursor and the old settings are lot.

Any work around? Thanks for all.

--
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

Reply via email to