Get root permission and save a file inside of vim editor edit

http://stackoverflow.com/questions/1005/getting-root-permissions-on-a-file-inside-of-vi
:w !sudo tee %

0 comments:

Post a Comment

Newer -> <- Older