diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-04 15:53:16 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-04 15:53:16 +1300 |
commit | d838d32e7e9a1e4719f808289c453ca473c8859d (patch) | |
tree | 2bf2468a5b43697790109fcd08912531f90ac5c4 /vim/vimrc.stub.vim | |
parent | Merge branch 'release/v3.0.0' into develop (diff) | |
parent | Bump VERSION (hotfix) (diff) | |
download | dotfiles-d838d32e7e9a1e4719f808289c453ca473c8859d.tar.gz dotfiles-d838d32e7e9a1e4719f808289c453ca473c8859d.zip |
Merge branch 'hotfix/v3.0.1' into develop
* hotfix/v3.0.1:
Block out local 'runtimepath' on bad Vims
Diffstat (limited to 'vim/vimrc.stub.vim')
-rw-r--r-- | vim/vimrc.stub.vim | 10 |
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 |