1
0
Fork 0
mirror of synced 2024-06-01 15:01:10 -04:00

fix(basic.vim): change command W to command! W

`source $MYVIMRC` will fail since command `W` exists.
Add `!` so the command would be redefined
This commit is contained in:
WilliamLeung 2018-04-19 14:41:08 +08:00
parent 92c9100a45
commit 7862832aee

View file

@ -49,7 +49,7 @@ nmap <leader>w :w!<cr>
" :W sudo saves the file " :W sudo saves the file
" (useful for handling the permission-denied error) " (useful for handling the permission-denied error)
command W w !sudo tee % > /dev/null command! W w !sudo tee % > /dev/null
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""