From 77585d75bfe1ee422e615ae0c935d275c36604e7 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 14 Jul 2018 19:26:12 +1200 Subject: 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. --- vim/vimrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'vim') 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 -- cgit v1.2.3