This article is over 1 year old (to check for a more recent resource see the wiki index, the tag cloud, or the tag search page)
Writing a file with root privileges from within Vim
by Greg Hurrell
:w !sudo tee % > /dev/null
Add a comment
Comments are now closed for this article.