aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-18 00:25:58 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-18 00:25:58 +1200
commit914503919283e061c3013cb64114187d4412b11b (patch)
treedd78ba0d8295770c568df55135454963a7faa7ca
parentAdd a couple of abbreviations (diff)
downloaddotfiles-914503919283e061c3013cb64114187d4412b11b.tar.gz
dotfiles-914503919283e061c3013cb64114187d4412b11b.zip
Test 'compatible' is off before loading main vimrc
-rw-r--r--vim/vimrc.stub.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/vimrc.stub.vim b/vim/vimrc.stub.vim
index b2d8803a..1d8d3d9a 100644
--- a/vim/vimrc.stub.vim
+++ b/vim/vimrc.stub.vim
@@ -1,6 +1,6 @@
" If we have non-tiny Vim version >=7, source real vimrc; this works because
" tiny and/or ancient builds of Vim quietly ignore all code in :if blocks
-if v:version >= 700
+if v:version >= 700 && !&compatible
runtime vimrc
finish
endif