Paul wrote:
> My default colour scheme sometimes shows text with the same background colour 
> as the foreground colour when I diff two files. I've found that the pablo 
> colour scheme works best for me in diff mode. Is there a way to automatically 
> set diff'd buffers to use this colour scheme? I see no autocommands that 
> trigger when a diff'd buffer is shown, and I see that the 'diff' option is 
> set, but I don't know how to have vim change colour scheme automatically when 
> it's set.
>
>   
I suppose there's always the old standby of CursorHold...

au CursorHold    *    if &diff && g:colors_name != "pablo" | colors 
pablo | endif

Regards,
Chip Campbell


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

Reply via email to