From 574a059da6400f6a328ee8e78c11cb7b333d8fa1 Mon Sep 17 00:00:00 2001 From: Von Random Date: Mon, 24 Nov 2014 13:47:29 +0300 Subject: [PATCH] fix to be able to use solarized colourscheme even in lower versions of vim --- vimrc | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/vimrc b/vimrc index 84ee7c5..c3e0352 100644 --- a/vimrc +++ b/vimrc @@ -109,13 +109,9 @@ if v:version >= 703 " buffergator options map , :BuffergatorToggle - - " check before setting - if &t_Co > 88 - let g:airline_powerline_fonts = 1 - colorscheme solarized - endif endif +elseif if filereadable(expand("$HOME/.vim/bundle/forked-solarized.vim/colors/solarized.vim")) + set rtp+=~/.vim/bundle/forked-solarized.vim endif " gvim stuff @@ -130,7 +126,10 @@ if has("gui_running") map map! colorscheme jellybeans -elseif &t_Co < 88 +elseif &t_Co > 88 + let g:airline_powerline_fonts = 1 + colorscheme solarized +else colorscheme elflord endif