1
0
Fork 0
mirror of synced 2024-12-21 22:41:06 -05:00

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

This commit is contained in:
Ma Chao 2019-11-30 19:57:52 +08:00 committed by Amir Salihefendic
parent 9234352b8c
commit c37e4c84b0

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