On Thu, Dec 03, 2009 at 08:37:25AM +0100, Tony Mechelynck wrote:
>>>au CursorHold * if&diff&& g:colors_name != "pablo" | colors
>>>pablo | endif
>>
>>Apparently the default colour scheme does not set g:colors_name, so that
>>gives an undefined variable error :/
>
>Easy:
>
> au CursorHold * if &diff && (!exists('g:colors_name') ||
> \ g:colors_name != 'pablo') | colors pablo | endif
>
>You may want to use a different event, such as WinEnter
That's great, thanks!
--
.
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php