aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc.stub.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-12-04 15:53:01 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-12-04 15:53:01 +1300
commit3098a8222d8c2ae8938d3b3ad988f51f03af7d0e (patch)
tree2bf2468a5b43697790109fcd08912531f90ac5c4 /vim/vimrc.stub.vim
parentMerge branch 'release/v3.0.0' (diff)
parentBump VERSION (hotfix) (diff)
downloaddotfiles-3.0.1.tar.gz (sig)
dotfiles-3.0.1.zip
Merge branch 'hotfix/v3.0.1'v3.0.1
* hotfix/v3.0.1: Block out local 'runtimepath' on bad Vims
Diffstat (limited to 'vim/vimrc.stub.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