aboutsummaryrefslogtreecommitdiff
path: root/vim/config/syntax.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/config/syntax.vim')
-rw-r--r--vim/config/syntax.vim12
1 files changed, 12 insertions, 0 deletions
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