aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
blob: 87f863a651df531eba145431a7ce09e9e9a6026a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
" If we're in compatible mode, ensure that the 'C' option that disallows line
" continuations is stripped out, as they're heavily used in this
" configuration for readability; we'll put it back later
if &compatible
  let s:cpoptions_save = &cpoptions
  set cpoptions-=C
endif

" Use different keys for global and local leaders
if has('eval')
  let g:mapleader = '\'
  let g:maplocalleader = '_'
endif

" Source all .vim files from ~/.vim/config
runtime! config/*.vim

" 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')
  let &cpoptions = s:cpoptions_save
  unlet s:cpoptions_save
endif