aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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