From 714bd966bccbfd0936efb593702fe7e3d5491493 Mon Sep 17 00:00:00 2001 From: Ian Date: Mon, 2 Jul 2012 13:37:30 -0400 Subject: [PATCH] Wrap color theme with try/catch to prevent errors on initial run --- vim/dot_vimrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vim/dot_vimrc b/vim/dot_vimrc index 22dcce7..cdf8119 100644 --- a/vim/dot_vimrc +++ b/vim/dot_vimrc @@ -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