aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-12-04 15:52:27 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-12-04 15:52:27 +1300
commit7d0e0ab7edc24cfad45d9fd8d176e599187ad717 (patch)
treedad2636012755ad1dd65da920874c7b7176bbb09 /vim
parentMerge branch 'release/v3.0.0' (diff)
downloaddotfiles-7d0e0ab7edc24cfad45d9fd8d176e599187ad717.tar.gz
dotfiles-7d0e0ab7edc24cfad45d9fd8d176e599187ad717.zip
Block out local 'runtimepath' on bad Vims
Diffstat (limited to 'vim')
-rw-r--r--vim/vimrc.stub.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/vim/vimrc.stub.vim b/vim/vimrc.stub.vim
index 51ca436a..72c7f7e1 100644
--- a/vim/vimrc.stub.vim
+++ b/vim/vimrc.stub.vim
@@ -1,4 +1,14 @@
" If we have Vim version >=7, and (implicitly) +eval, source real vimrc
if v:version >= 700
runtime vimrc
+
+" If not, prevent Vim from using any part of our configuration
+else
+ if has('win32') || has('win64')
+ set runtimepath-=~/vimfiles
+ set runtimepath-=~/vimfiles/after
+ else
+ set runtimepath-=~/.vim
+ set runtimepath-=~/.vim/after
+ endif
endif