From 5529e93e98cc3dc9b8a7e187b861e503060d305f Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 6 Apr 2009 23:04:12 -0500 Subject: [PATCH] vim.tiny fix --- vimrc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/vimrc b/vimrc index c83c625..75234fa 100644 --- a/vimrc +++ b/vimrc @@ -245,10 +245,12 @@ map Y y$ vmap K k " :W and :Q are annoying -command! -nargs=0 -bang Q q -command! -nargs=0 -bang W w -command! -nargs=0 -bang WQ wq -command! -nargs=0 -bang Wq wq +if has('user_commands') + command! -nargs=0 -bang Q q + command! -nargs=0 -bang W w + command! -nargs=0 -bang WQ wq + command! -nargs=0 -bang Wq wq +endif " just continue nmap K K