On Feb 28, 4:11 pm, Matt Wozniski <[email protected]> wrote:
> On Sat, Feb 28, 2009 at 6:50 PM, Sean wrote:
> > It is possible to save/restore highlight settings in a plugin?
>
> I don't think I understand the question...
>
> >     (1) save highlight option  (How ?)
> >     (2) highlight lCursor guibg=green
> >     (3) restore highlight option  (How ?)
>
> What would you expect that example to do?
>
> ~Matt


Basically, I want to know if it is possible to do (1) and (3) below

(1) let s:saved_highlight=&ICursor
(2) highlight lCursor guibg=green
(3) &ICursor=s:saved_highlight

Step (2) is correct, and is what I want, from within my plugin.
However, I don't want to set it permanently for all vim session.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to