Add override command for sudo save.
This commit is contained in:
parent
1c7abcd59e
commit
bcbbdb653e
|
@ -63,7 +63,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
|
||||
|
||||
|
||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
|
|
Loading…
Reference in a new issue