aboutsummaryrefslogtreecommitdiff
path: root/vim/after/plugin/eunuch.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2012-05-18 14:00:35 +1200
committerTom Ryder <tom@sanctum.geek.nz>2012-05-18 14:00:35 +1200
commit7146fdb29a3d5deff0cb997050eaa7c7cc36e8d4 (patch)
tree924f98f36c2747584b3a86dcd094e41fe87655a7 /vim/after/plugin/eunuch.vim
parentFugitive updates. (diff)
downloaddotfiles-7146fdb29a3d5deff0cb997050eaa7c7cc36e8d4.tar.gz
dotfiles-7146fdb29a3d5deff0cb997050eaa7c7cc36e8d4.zip
Conditional wrapping for :W re-remapping
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