From 7862832aee023ff1f989c4d1336cf651ee62e313 Mon Sep 17 00:00:00 2001 From: WilliamLeung Date: Thu, 19 Apr 2018 14:41:08 +0800 Subject: [PATCH] fix(basic.vim): change `command W` to `command! W` `source $MYVIMRC` will fail since command `W` exists. Add `!` so the command would be redefined --- vimrcs/basic.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vimrcs/basic.vim b/vimrcs/basic.vim index 11d1ed81..00b1463b 100644 --- a/vimrcs/basic.vim +++ b/vimrcs/basic.vim @@ -49,7 +49,7 @@ nmap w :w! " :W sudo saves the file " (useful for handling the permission-denied error) -command W w !sudo tee % > /dev/null +command! W w !sudo tee % > /dev/null """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""