]> git.phdru.name Git - dotfiles.git/blobdiff - .vim/colors/phd.vim
.vim, git: change colors
[dotfiles.git] / .vim / colors / phd.vim
index e4d086cc90bb074a3682fe805552e6beda5a3325..bc92411e300af34b2c37c61281bc14afdc002b56 100644 (file)
@@ -40,6 +40,13 @@ if &background == 'light'
    highlight Type ctermfg=black guifg=black
    highlight pythonExceptions ctermfg=darkred guifg=darkred
 
+   if &diff
+      highlight DiffAdd ctermfg=green ctermbg=grey guifg=green guibg=grey90
+      highlight DiffChange ctermfg=black ctermbg=grey guifg=black guibg=grey90
+      highlight DiffDelete ctermfg=red ctermbg=grey guifg=red guibg=grey90
+      highlight DiffText ctermfg=white ctermbg=magenta guifg=white guibg=magenta
+   endif
+
    if &filetype == 'mail'
       highlight Statement cterm=none ctermfg=black gui=none guifg=black
       highlight Type ctermfg=blue guifg=blue
@@ -64,6 +71,13 @@ else
    highlight Type ctermfg=white guifg=white
    highlight pythonExceptions ctermfg=red guifg=red
 
+   if &diff
+      highlight DiffAdd ctermfg=green ctermbg=black guifg=green guibg=black
+      highlight DiffChange ctermfg=white ctermbg=black guifg=black guibg=black
+      highlight DiffDelete ctermfg=red ctermbg=black guifg=red guibg=black
+      highlight DiffText ctermfg=white ctermbg=magenta guifg=white guibg=magenta
+   endif
+
    if &filetype == 'mail'
       highlight Statement cterm=none ctermfg=white gui=none guifg=white
       highlight Type cterm=bold gui=bold