HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by emillon | Hacker News Reader
Parent
Full thread
emillon
·
Normal mode (:help :! for more information on this command).
View on HN
ralph
·
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 %".
AjithAntony
·
:w !sudo tee %
Reply on news.ycombinator.com