aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-14 19:26:12 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-14 19:26:12 +1200
commit77585d75bfe1ee422e615ae0c935d275c36604e7 (patch)
treed5a306cc1055680835909d3654db4580331be7a7
parent200521c51da45fc6aafcf18a748330c72f67937b (diff)
downloaddotfiles-77585d75bfe1ee422e615ae0c935d275c36604e7.tar.gz
dotfiles-77585d75bfe1ee422e615ae0c935d275c36604e7.zip
Adjust syntax settings in .vimrc
If syntax had already been switched on by a system vimrc (boo! hiss!), my colorscheme or 'background' setting doesn't get loaded.
-rw-r--r--vim/vimrc6
1 files changed, 4 insertions, 2 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 0edbcd63..e76fe85e 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -14,10 +14,12 @@ if has('autocmd')
endif
" Options dependent on the syntax feature
-if has('syntax') && !exists('g:syntax_on')
+if has('syntax')
" Use syntax highlighting
- syntax enable
+ if !exists('g:syntax_on')
+ syntax enable
+ endif
" Use my colorscheme if using the GUI or if we have 256 colors
if has('gui_running') || &t_Co >= 256