Monday, March 1, 2010

Re: Programmatically detect a current "highlight" setting?

On 1 mar, 11:46, Tony Mechelynck <antoine.mechely...@gmail.com> wrote:
> On 01/03/10 08:42, Wincent Colaiuta wrote:
>
> > I'm writing a plug-in and want to temporarily hide the cursor.
>
> > It would be really neat if I could do "highlight Cursor NONE" and
> > later restore the highlight setting to whatever it was before.
>
> > But I am not sure how to capture the old setting. Evidently "highlight
> > Cursor" _echoes_ the current setting, but doesn't actually return
> > anything that I could capture programmatically.
>
> > Anything I can do?
>
> > Cheers,
> > Wincent
>
> see
>         :help :redir

Thanks, Tony. Read the first paragraph and thought , "ugh, redirecting
to a file, ugly but at least it will work...", and was very pleased to
see in the next paragraph how to redirect to a variable. Sweet.

Cheers,
Wincent

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

No comments:

Post a Comment