1
0
Fork 0
mirror of synced 2024-06-16 05:51:11 -04:00

feat(:W):avoid warning such as the buffer was changed

This commit is contained in:
luc 2019-11-18 23:08:22 +08:00
parent c30a27a14d
commit 932547676d

View file

@ -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 execute 'w !sudo tee % > /dev/null' <bar> edit!
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""