From 5dba4c921de02ec6c4475b5cc1df8d35de3cc30e Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 28 Oct 2017 21:34:34 +1300 Subject: Move syntax highlight .vimrc config into subfile This appears to break my choice of syntax colorscheme; the order of loading some of the previous directives in the configuration may have been relevant. --- vim/config/syntax.vim | 12 ++++++++++++ vim/vimrc | 13 ------------- 2 files changed, 12 insertions(+), 13 deletions(-) create mode 100644 vim/config/syntax.vim diff --git a/vim/config/syntax.vim b/vim/config/syntax.vim new file mode 100644 index 00000000..68a344e2 --- /dev/null +++ b/vim/config/syntax.vim @@ -0,0 +1,12 @@ +" Options dependent on the syntax feature +if has('syntax') + + " Use syntax highlighting with 100 lines of context + silent! syntax enable + silent! syntax sync minlines=100 + + " Use my custom color scheme if possible, otherwise I'm happy with whatever + " the default is, and it usually cares about my background + set background=dark + silent! colorscheme sahara +endif diff --git a/vim/vimrc b/vim/vimrc index 3a579836..401a287e 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -23,19 +23,6 @@ if has('autocmd') filetype indent plugin on endif -" Options dependent on the syntax feature -if has('syntax') - - " Use syntax highlighting with 100 lines of context - silent! syntax enable - silent! syntax sync minlines=100 - - " Use my custom color scheme if possible, otherwise I'm happy with whatever - " the default is, and it usually cares about my background - set background=dark - silent! colorscheme sahara -endif - " Use all ancestors of current directory for :find if has('file_in_path') set path=** -- cgit v1.2.3