Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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 %
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #vim #sudo #trick
ADD COMMENT
Topic
Name
4+6 =