aboutsummaryrefslogtreecommitdiff
path: root/vim/after/plugin/eunuch.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/after/plugin/eunuch.vim')
-rw-r--r--vim/after/plugin/eunuch.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/vim/after/plugin/eunuch.vim b/vim/after/plugin/eunuch.vim
index 67f97e80..2b989271 100644
--- a/vim/after/plugin/eunuch.vim
+++ b/vim/after/plugin/eunuch.vim
@@ -1,3 +1,5 @@
" Discard Eunuch's remapping of :W.
-command! -bang -complete=file -nargs=? W w<bang> <args>
+if has("user_commands")
+ command! -bang -complete=file -nargs=? W w<bang> <args>
+endif