Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ralph
on Jan 7, 2013
|
parent
|
context
|
favorite
| on:
Favorite Unix Commands
What vi mode is that entered in?
emillon
on Jan 7, 2013
[–]
Normal mode (:help :! for more information on this command).
ralph
on Jan 7, 2013
|
parent
[–]
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
on Jan 8, 2013
|
root
|
parent
[–]
:w !sudo tee %
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: