Wrap color theme with try/catch to prevent errors on initial run

This commit is contained in:
Ian 2012-07-02 13:37:30 -04:00
parent 48336345ab
commit 714bd966bc
1 changed files with 6 additions and 1 deletions

View File

@ -64,7 +64,12 @@ set directory=~/.vim/tmp
"set theme
:colorscheme vividchalk
try
colorscheme vividchalk
catch /^Vim\%((\a\+)\)\=:E185/
" deal with it
endtry
"Highlights the line the cursor is on
set cursorline
:hi CursorLine cterm=NONE ctermbg=darkred guibg=darkred guifg=white