aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
blob: eab24946d917ef46d9172f8fb7b9fb0b3f882249 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
" Load configuration files from ~/.vim/config or its analogue, before Pathogen
" loads all its directories into 'runtimepath'
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