Clean up colorscheme settings for Vim
This commit is contained in:
parent
62814b49cf
commit
3725d82a1e
1 changed files with 13 additions and 18 deletions
31
vimrc
31
vimrc
|
@ -99,36 +99,31 @@ endif
|
||||||
set modeline
|
set modeline
|
||||||
set modelines=12
|
set modelines=12
|
||||||
|
|
||||||
" use a colorscheme if the terminal can support it (or we're in a GUI)
|
|
||||||
if has('gui_running')
|
|
||||||
colorscheme solarized
|
|
||||||
set bg=light
|
|
||||||
else
|
|
||||||
colorscheme default
|
|
||||||
set bg=dark
|
|
||||||
endif
|
|
||||||
|
|
||||||
if !has('gui_running')
|
|
||||||
" line numbers
|
|
||||||
highlight LineNr cterm=bold ctermfg=0
|
|
||||||
" list mode characters
|
|
||||||
highlight NonText cterm=bold ctermfg=0
|
|
||||||
highlight SpecialKey cterm=bold ctermfg=0
|
|
||||||
endif
|
|
||||||
|
|
||||||
" use syntax highlighting if the terminal can support it (or we're in a GUI)
|
" use syntax highlighting if the terminal can support it (or we're in a GUI)
|
||||||
if &t_Co > 2 || has('gui_running')
|
if &t_Co > 2 || has('gui_running')
|
||||||
syntax on " turn on syntax highlighting
|
syntax on " turn on syntax highlighting
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" use a colorscheme if the terminal can support it (or we're in a GUI)
|
||||||
|
if has('gui_running')
|
||||||
|
set bg=light
|
||||||
|
colorscheme solarized
|
||||||
|
else
|
||||||
|
set bg=dark
|
||||||
|
colorscheme solarized
|
||||||
|
endif
|
||||||
|
|
||||||
" tell SnipMate who I am
|
" tell SnipMate who I am
|
||||||
let g:snips_author = 'Eryn Wells <eryn@erynwells.me>'
|
let g:snips_author = 'Eryn Wells <eryn@erynwells.me>'
|
||||||
|
|
||||||
" set the Gundo preview window on the bottom
|
" set the Gundo preview window on the bottom
|
||||||
let g:gundo_preview_bottom = 1
|
let g:gundo_preview_bottom = 1
|
||||||
|
|
||||||
if has('gui_running')
|
if &t_Co > 2 || has('gui_running')
|
||||||
set cursorline
|
set cursorline
|
||||||
|
endif
|
||||||
|
|
||||||
|
if has('gui_running')
|
||||||
if has('win32') || has('win64')
|
if has('win32') || has('win64')
|
||||||
set guifont=Inconsolata:h18
|
set guifont=Inconsolata:h18
|
||||||
elseif has('mac')
|
elseif has('mac')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue