aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-28 22:16:06 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-28 22:16:06 +1300
commit6ca11a52b5754ae9011fe3cb29648723854837eb (patch)
tree50f6ec28128d20b9e9f3dd8a72912d4e78b57f18 /vim/vimrc
parentMove completion .vimrc config into subfile (diff)
downloaddotfiles-6ca11a52b5754ae9011fe3cb29648723854837eb.tar.gz
dotfiles-6ca11a52b5754ae9011fe3cb29648723854837eb.zip
Move syntax .vimrc config into subfile
Some refactoring is done here, because as noted in 5caa13c, my custom colorscheme is implemented as a plugin to be loaded by Pathogen, and hence isn't available into after it's done its work. I've removed the :set background line for now until I'm sure it's needed, because at the moment I'm not sure.
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc16
1 files changed, 4 insertions, 12 deletions
diff --git a/vim/vimrc b/vim/vimrc
index a2698925..6700b5fa 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -16,19 +16,11 @@ runtime! config/*.vim
if v:version >= 701
silent! call pathogen#infect()
silent! call pathogen#helptags()
-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
+ " With the plugins loaded, we might now be able to use my custom colorscheme
+ if has('syntax')
+ silent! colorscheme sahara
+ endif
endif
" Don't jump my screen around when I join lines, keep my cursor in the same