diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2012-05-18 14:00:35 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2012-05-18 14:00:35 +1200 |
commit | 7146fdb29a3d5deff0cb997050eaa7c7cc36e8d4 (patch) | |
tree | 924f98f36c2747584b3a86dcd094e41fe87655a7 /vim | |
parent | Fugitive updates. (diff) | |
download | dotfiles-7146fdb29a3d5deff0cb997050eaa7c7cc36e8d4.tar.gz dotfiles-7146fdb29a3d5deff0cb997050eaa7c7cc36e8d4.zip |
Conditional wrapping for :W re-remapping
Diffstat (limited to 'vim')
-rw-r--r-- | vim/after/plugin/eunuch.vim | 4 |
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 |