diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-25 17:50:32 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-25 17:50:32 +1200 |
commit | 3b2d915005dfee4f693919267fff08c8728778b8 (patch) | |
tree | df85fea545b5471c5e8bac6406ebd3a6cc4673ce /vim | |
parent | Merge branch 'release/v6.46.0' into develop (diff) | |
download | dotfiles-3b2d915005dfee4f693919267fff08c8728778b8.tar.gz dotfiles-3b2d915005dfee4f693919267fff08c8728778b8.zip |
Reset 'compatible' in stub vimrc
Diffstat (limited to 'vim')
-rw-r--r-- | vim/vimrc.stub | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vim/vimrc.stub b/vim/vimrc.stub index 29a9e1bf..0be30848 100644 --- a/vim/vimrc.stub +++ b/vim/vimrc.stub @@ -5,6 +5,10 @@ " clear, we can load the main vimrc file from ~/.vim/vimrc to use Vim in all " of its incompatible glory, and then stop sourcing the rest of this file. " +" We have to set 'compatible' back to its default because system vimrcs +" sometimes set it. +" +set compatible& if !&compatible && !exists('$POSIXLY_CORRECT') && v:version >= 700 runtime vimrc finish |