Hacker News new | past | comments | ask | show | jobs | submit login

What vi mode is that entered in?



Normal mode (:help :! for more information on this command).


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 %




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: