diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-28 22:16:06 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-28 22:16:06 +1300 |
commit | 6ca11a52b5754ae9011fe3cb29648723854837eb (patch) | |
tree | 50f6ec28128d20b9e9f3dd8a72912d4e78b57f18 /vim/vimrc | |
parent | Move completion .vimrc config into subfile (diff) | |
download | dotfiles-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/vimrc | 16 |
1 files changed, 4 insertions, 12 deletions
@@ -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 |