diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-04 15:53:01 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-04 15:53:01 +1300 |
commit | 3098a8222d8c2ae8938d3b3ad988f51f03af7d0e (patch) | |
tree | 2bf2468a5b43697790109fcd08912531f90ac5c4 | |
parent | Merge branch 'release/v3.0.0' (diff) | |
parent | Bump VERSION (hotfix) (diff) | |
download | dotfiles-3098a8222d8c2ae8938d3b3ad988f51f03af7d0e.tar.gz dotfiles-3098a8222d8c2ae8938d3b3ad988f51f03af7d0e.zip |
Merge branch 'hotfix/v3.0.1'v3.0.1
* hotfix/v3.0.1:
Block out local 'runtimepath' on bad Vims
-rw-r--r-- | VERSION | 4 | ||||
-rw-r--r-- | vim/vimrc.stub.vim | 10 |
2 files changed, 12 insertions, 2 deletions
@@ -1,2 +1,2 @@ -tejr dotfiles v3.0.0 -Tue Dec 4 02:08:39 UTC 2018 +tejr dotfiles v3.0.1 +Tue Dec 4 02:52:42 UTC 2018 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 |