diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-11-30 14:28:42 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-11-30 14:28:42 +1300 |
commit | 3c5b1c0ea6406a2b6b67bf0c78936c430cf9fd19 (patch) | |
tree | 42afe0c87503fde5ac19afa286082f87b3a86e59 /vim | |
parent | Merge branch 'release/v2.3.0' into develop (diff) | |
download | dotfiles-3c5b1c0ea6406a2b6b67bf0c78936c430cf9fd19.tar.gz dotfiles-3c5b1c0ea6406a2b6b67bf0c78936c430cf9fd19.zip |
Suppress ~/.vim usage during vimrc version check
Diffstat (limited to 'vim')
-rw-r--r-- | vim/filetype.vim | 4 | ||||
-rw-r--r-- | vim/vimrc | 10 |
2 files changed, 11 insertions, 3 deletions
diff --git a/vim/filetype.vim b/vim/filetype.vim index cc0de4e4..2e20b744 100644 --- a/vim/filetype.vim +++ b/vim/filetype.vim @@ -1,5 +1,5 @@ -" Override system filetype.vim if sufficiently new -if exists('g:did_load_filetypes') || v:version < 700 +" Override system filetype.vim +if exists('g:did_load_filetypes') finish endif let g:did_load_filetypes = 1 @@ -3,8 +3,16 @@ " This file is designed to load on any build of Vim version 7.0 or newer, " including tiny builds without +eval. -" Require at least Vim 7.0 (released 2006-05-08) +" Require at least Vim 7.0 (released 2006-05-08); otherwise, self-suppress as +" much of this config as possible if v:version < 700 + if has('win32') || has('win64') + set runtimepath-=~/vimfiles + set runtimepath-=~/vimfiles/after + else + set runtimepath-=~/.vim + set runtimepath-=~/.vim/after + endif finish endif |