Answers for "vim sudo trick"

0

vim sudo trick

add into vimrc or similar:
" Allow saving of files as sudo when I forgot to start vim using sudo.
cmap w!! w !sudo tee > /dev/null %
Posted by: Guest on September-28-2021

Browse Popular Code Answers by Language