Christian Brabandt 写道:
Hi pansz!
On Do, 04 Mär 2010, pansz wrote:
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.
[…]
Any work around? Thanks for all.
Try the attached script. I was written quick and dirty fr a similar
issue on this list. It already queries the font attribute, though this
only works with a patched vim, currently.
Thanks, it seems that the redir do the trick.
--
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