Hacker News new | ask | show | jobs
by emillon 5077 days ago
Normal mode (:help :! for more information on this command).
1 comments

What benefit does

    :!sudo tee %
have over doing it at the command line other than filling in the current filename for you? I suspect the original poster meant something like "gg!Gsudo tee %".
:w !sudo tee %