]> git.phdru.name Git - dotfiles.git/commitdiff
Better mode color for dark terminals
authorOleg Broytman <phd@phdru.name>
Fri, 22 Aug 2014 03:51:51 +0000 (07:51 +0400)
committerOleg Broytman <phd@phdru.name>
Fri, 22 Aug 2014 03:51:51 +0000 (07:51 +0400)
.vimrc

diff --git a/.vimrc b/.vimrc
index 422f97d48a1acfa55a5dbdd59fe646989f6be162..d86e0bb8c1843ea9ce3753d0cc8375455cc5726c 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -204,15 +204,17 @@ else
          \ || has("win32")
       " Background of the terminal is black or dark grey
       set background=dark
+      highlight MoreMsg ctermfg=white
+      highlight ModeMsg ctermfg=white
+      highlight Question ctermfg=white
    else
       set background=light
+      highlight MoreMsg cterm=bold ctermfg=NONE
+      highlight Question cterm=bold ctermfg=NONE
    endif
 
    if (&term =~ "linux")
       execute 'set t_kb=' . nr2char(127)
-   else
-      highlight MoreMsg cterm=bold ctermfg=NONE
-      highlight Question cterm=bold ctermfg=NONE
    endif
 
    if (&term =~ "rxvt") || (&term =~ "screen") || (&term =~ "term") || (&term =~ "vt100")