From e1a383d271b4ae8e0f934d86d46f316be3d6b84b Mon Sep 17 00:00:00 2001 From: William17 Date: Sun, 17 Nov 2019 00:13:30 +0800 Subject: [PATCH] fix(basic.vim): change `command W` to `command! W` (#412) `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 1e75a3fb..91d3e71a 100644 --- a/vimrcs/basic.vim +++ b/vimrcs/basic.vim @@ -50,7 +50,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 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""