mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2025-01-07 09:57:34 +00:00
Wrap color theme with try/catch to prevent errors on initial run
This commit is contained in:
parent
48336345ab
commit
714bd966bc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user