On Sat, Feb 28, 2009 at 9:15 PM, vimim wrote: > On Feb 28, 4:11 pm, Matt Wozniski 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? > > 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 want the lCursor highlight to be set to green while your plugin is being sourced, and reset to the default after your plugin is done being loaded? That's what that pseudocode looks like it should do. And that's nonsensical; the cursor would never be redisplayed while the script is being sourced. ~Matt --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
