mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2025-01-08 10:37:34 +00:00
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:
parent
31bb9709e2
commit
ce02932893
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user