On Fri, October 30, 2009 4:07 am, Roy Fulbright wrote: > What I want is for gvim to use colorscheme A for normal editing and to use > colorscheme B for gvimdiff.
If I am not mistaken, this should work: if v:progname =~ "vimdiff" colorscheme a else colorscheme b endif But this does not seem to work on Windows, cause the gvimdiff.bat file, simply calls gvim. Oh well, may be, this works for Windows as well: if &diff colorscheme a else colorscheme b endif Or, if you want a more dynamic approach, this might work as well colors a au FilterWritePost * if &diff | colors b | else | colors a | endif au BufLeave * colors a regards, Christian -- :wq --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
