aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-05-03 23:47:30 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-05-03 23:49:29 +1200
commit4e71493804962633524a2e9bf36602d783d99b10 (patch)
tree757f8f64d0a89c0217dd73df1dbf6b81f80b5f60
parentMerge branch 'release/v8.28.0' (diff)
downloaddotfiles-4e71493804962633524a2e9bf36602d783d99b10.tar.gz
dotfiles-4e71493804962633524a2e9bf36602d783d99b10.zip
Test for correct feature for undoskip.vim plugin
The +persistent_undo feature wasn't added until Vim v7.3.
-rw-r--r--vim/plugin/undoskip.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/plugin/undoskip.vim b/vim/plugin/undoskip.vim
index 80609433..2f541ebf 100644
--- a/vim/plugin/undoskip.vim
+++ b/vim/plugin/undoskip.vim
@@ -4,7 +4,7 @@
" Author: Tom Ryder <tom@sanctum.geek.nz>
" License: Same as Vim itself
"
-if exists('loaded_undoskip') || &compatible || v:version < 700
+if exists('loaded_undoskip') || &compatible || !has('persistent_undo')
finish
endif
let loaded_undoskip = 1