diff options
Diffstat (limited to 'vim')
-rw-r--r-- | vim/config/syntax.vim | 5 | ||||
-rw-r--r-- | vim/vimrc | 22 |
2 files changed, 6 insertions, 21 deletions
diff --git a/vim/config/syntax.vim b/vim/config/syntax.vim index 00004e35..2322db5b 100644 --- a/vim/config/syntax.vim +++ b/vim/config/syntax.vim @@ -14,4 +14,9 @@ if has('syntax') && !has('g:syntax_on') set background=dark endif + " The 'sahara' colorscheme only works for dark backgrounds with 256 colors + if &background ==# 'dark' && (has('gui_running') || &t_Co == 256) + silent! colorscheme sahara + endif + endif @@ -12,29 +12,9 @@ if has('eval') let g:maplocalleader = '_' endif -" Load configuration files from ~/.vim/config or its analogue, before Pathogen -" loads all its directories into 'runtimepath' +" Source all .vim files from ~/.vim/config runtime! config/*.vim -" If our version isn't ancient and Pathogen is available, call it to load all -" the plugins in .vim/bundle; these are saved as submodules -if v:version >= 701 - - " Bootstrap Pathogen - runtime bundle/pathogen/autoload/pathogen.vim - - " Run Pathogen to broaden 'realtimepath' for plugin code and help tags - silent! call pathogen#infect() - silent! call pathogen#helptags() - - " The 'sahara' colorscheme only works for dark backgrounds with 256 colors - if has('syntax') - \ && &background ==# 'dark' - \ && (has('gui_running') || &t_Co == 256) - silent! colorscheme sahara - endif -endif - " If we're in compatible mode, put 'cpoptions' back the way we found it at the " start of this configuration, even though it's the current year if exists('s:cpoptions_save') |