diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-14 19:26:12 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-14 19:26:12 +1200 |
commit | 77585d75bfe1ee422e615ae0c935d275c36604e7 (patch) | |
tree | d5a306cc1055680835909d3654db4580331be7a7 | |
parent | Adjust mapping comment for consistency (diff) | |
download | dotfiles-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/vimrc | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |