Add Wombat Color Scheme and Add $VIM_COLOR Support

A terminal may set $VIM_COLOR as an environment variable and the vimrc will load that colorscheme
This commit is contained in:
ViViDboarder 2013-01-02 12:12:41 -05:00
parent 31bb9709e2
commit ce02932893

View File

@ -34,6 +34,7 @@ Bundle 'pdurbin/vim-tsv'
" GUI " GUI
Bundle 'vividchalk.vim' Bundle 'vividchalk.vim'
Bundle 'vim-scripts/Wombat'
Bundle 'gregsexton/MatchTag' Bundle 'gregsexton/MatchTag'
" Filetypes " Filetypes
@ -76,16 +77,25 @@ set directory=~/.vim/tmp
"set theme "set theme
try try
colorscheme vividchalk if !empty($VIM_COLOR)
colorscheme $VIM_COLOR
else
if has("gui_running")
colorscheme wombat
else
colorscheme vividchalk
endif
endif
catch /^Vim\%((\a\+)\)\=:E185/ catch /^Vim\%((\a\+)\)\=:E185/
" deal with it " Colorschemes not installed yet
" This happens when first installing bundles
endtry endtry
"Highlights the line the cursor is on "Highlights the line the cursor is on
set cursorline set cursorline
:hi CursorLine cterm=NONE ctermbg=darkred guibg=darkred guifg=white :hi CursorLine cterm=NONE ctermbg=darkred guibg=darkred guifg=white
"Toggle highlighting with \hr (highlight row) "Toggle highlighting with \hr (highlight row)
nnoremap <Leader>hr :set cursorline!<CR> nnoremap <leader>hr :set cursorline!<CR>
"enable line numbers "enable line numbers
set nu set nu