From 67ee69a207f8b909609b50dc1783f495a80b5a7d Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 3 Jul 2011 09:45:58 +0200 Subject: Set colorscheme when toggling syntax --- etc/vimrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/etc/vimrc b/etc/vimrc index 38b454e..8af7ded 100644 --- a/etc/vimrc +++ b/etc/vimrc @@ -39,10 +39,18 @@ set redrawtime=500 " Chaosdorf autocmd BufRead ~/var/svn/intern.chaosdorf.de/admin/log.mdwn nnoremap :5O### =strftime("%Y-%m-%d") derf- +map :if exists("g:colors_name") && g:colors_name == "darkblue" + \ colorscheme default + \ else + \ colorscheme darkblue + \ endif + map :if exists("g:syntax_on") \ syntax off + \ colorscheme default \ else \ syntax enable + \ colorscheme darkblue \ endif -- cgit v1.2.3