On Mon, 4 Jul 2011, Anonymous bin Ich wrote:

Hi!

Is there a way to load different colorscheme when using vimdiff (and different when using vim)?

In .vimrc, condition it on the value of 'diff', which will be set to a value that evaluates to true in whatever buffer vimdiff starts in:

if &diff
        " colors[cheme] for diff mode
        colors whatever
else
        " colors for 'normal' mode
        colors andtheother
endif

--
Best,
Ben

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

Reply via email to