Y
Hacker News
new
|
ask
|
show
|
jobs
by
ralph
4908 days ago
What vi mode is that entered in?
1 comments
emillon
4908 days ago
Normal mode (:help :! for more information on this command).
link
ralph
4908 days ago
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 %".
link
AjithAntony
4908 days ago
:w !sudo tee %
link