aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc.stub.vim
blob: 175aa853a74e53df3b09bc0b4dbf5edad79cee43 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
" Check that we're not running in 'compatible' mode, nor that the environment
" calls for the same, and that we're running Vim v7.0.0 or newer.  If it's all
" clear, we can load the main vimrc file from ~/.vim/vimrc, and then stop
" sourcing the rest of this file.
"
if !&compatible && !exists('$POSIXLY_CORRECT') && v:version >= 700
  runtime vimrc
  finish
endif

" If we get this far, it means we're running a tiny, 'compatible', and/or
" ancient version of Vim.  Strip out our user runtime directories from
" 'runtimepath', force 'compatible' on, and fire up Sun OS 4.x vi v3.7, from
" July 1985.  Don't grizzle, just use it.  It's good for you, like raisin
" bran.
"
set runtimepath-=~/.vim
set runtimepath-=~/.vim/after
set compatible
silent! source ~/.exrc