aboutsummaryrefslogtreecommitdiff
path: root/vim/plugin/auto_undodir.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-12 23:58:43 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-12 23:58:43 +1300
commit03919f1c03f89e17c90e398a7eaceabb21f1268c (patch)
tree96aa801066da03d5fe3f1ac3e700bb7d2fd9b581 /vim/plugin/auto_undodir.vim
parentUse :set not :setlocal for 'hlsearch'/'incsearch' (diff)
downloaddotfiles-03919f1c03f89e17c90e398a7eaceabb21f1268c.tar.gz
dotfiles-03919f1c03f89e17c90e398a7eaceabb21f1268c.zip
Separate g:loaded/&cp tests from feat tests
Keeping the tests at the beginning of plugins on one line without continuations is needed to work around &cpo-=C.
Diffstat (limited to 'vim/plugin/auto_undodir.vim')
-rw-r--r--vim/plugin/auto_undodir.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/vim/plugin/auto_undodir.vim b/vim/plugin/auto_undodir.vim
index 9a686fb1..cf8d896a 100644
--- a/vim/plugin/auto_undodir.vim
+++ b/vim/plugin/auto_undodir.vim
@@ -5,7 +5,10 @@
" Author: Tom Ryder <tom@sanctum.geek.nz>
" License: Same as Vim itself
"
-if exists('g:loaded_auto_undodir') || &compatible || !has('persistent_undo')
+if exists('g:loaded_auto_undodir') || &compatible
+ finish
+endif
+if !has('persistent_undo')
finish
endif
let g:loaded_auto_undodir = 1