Change color scheme when calling vimdiff inside Vim
Fresh3 days ago
Mar 15, 20265257 viewsConfidence Score0%
0%
Problem
I'm using the VCSCommand plugin. I'm calling VimDiff utility inside Vim by calling . I have in my : It works when I call from my console, but not when I call it from Vim using VCS. Is this a plugin problem, or a config that is missing?
Error Output
if &diff
set t_Co=256
set background=dark
colorscheme peaksea
else
colorscheme molokai
endifUnverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Change color scheme when calling vimdiff inside Vim
Low Risk
Vim reads your vimrc once, at startup. The statement is executed when it is read, not every time the state of changes. One way to have those color commands executed when you execute is to put them in an autocommand in your vimrc, like this. where th…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix