From 7146fdb29a3d5deff0cb997050eaa7c7cc36e8d4 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 18 May 2012 14:00:35 +1200 Subject: Conditional wrapping for :W re-remapping --- vim/after/plugin/eunuch.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'vim/after/plugin/eunuch.vim') 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 +if has("user_commands") + command! -bang -complete=file -nargs=? W w +endif -- cgit v1.2.3