summaryrefslogtreecommitdiff
path: root/runtime/plugin/zipPlugin.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/plugin/zipPlugin.vim')
-rw-r--r--runtime/plugin/zipPlugin.vim11
1 files changed, 10 insertions, 1 deletions
diff --git a/runtime/plugin/zipPlugin.vim b/runtime/plugin/zipPlugin.vim
index e98686bbd..e198c66e2 100644
--- a/runtime/plugin/zipPlugin.vim
+++ b/runtime/plugin/zipPlugin.vim
@@ -20,7 +20,16 @@
if &cp || exists("g:loaded_zipPlugin")
finish
endif
-let g:loaded_zipPlugin = "v18"
+
+" Don't use the plugin if fnameescape() is not available
+if !exists("*fnameescape")
+ if &verbose > 1
+ echoerr "zipPlugin not loaded because fnameescape() is not available"
+ endif
+ finish
+endif
+
+let g:loaded_zipPlugin = "v21+b"
let s:keepcpo = &cpo
set cpo&vim