mirror of
https://github.com/amix/vimrc
synced 2025-02-28 14:12:51 +08: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:
parent
b7f50784d5
commit
e1a383d271
@ -50,7 +50,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
|
||||||
|
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
Loading…
Reference in New Issue
Block a user