Load different colorscheme when using vimdiff
How to load a different colorscheme when doing vimdiff . I want this because the my current colorscheme does not show some diffs properly in vimdiff , For. eg some diff is shown with same fg/bg color. This makes it very hard to understand the diff. So every time i do a vimdiff i have to do :colorscheme some_other_scheme Can this be done in .vimrc file? If you're calling vimdiff from the command-line, put the following in your .vimrc : if &diff colorscheme some_other_scheme endif If you're using vimdiff from within vim, you'd either have to override the commands you use to start/stop it (e.g.