mirror of
https://github.com/amix/vimrc
synced 2025-02-28 14:12:51 +08:00
feat(:W):avoid warning such as the buffer was changed
This commit is contained in:
parent
c30a27a14d
commit
932547676d
@ -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 execute 'w !sudo tee % > /dev/null' <bar> edit!
|
||||
|
||||
|
||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
|
Loading…
Reference in New Issue
Block a user