1
0
Fork 0
mirror of synced 2024-07-26 18:11:12 -04:00

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
This commit is contained in:
William17 2019-11-17 00:13:30 +08:00 committed by Amir Salihefendic
parent b7f50784d5
commit e1a383d271

View file

@ -50,7 +50,7 @@ nmap <leader>w :w!<cr>
" :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
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""