💾 Archived View for yasendfile.org › TipTricks › nice-use-of-tee-cmd.gmi captured on 2023-05-30 at 20:40:54. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-07-16)

➡️ Next capture (2024-03-21)

-=-=-=-=-=-=-

A nice use of the "tee" command inside Vim

Written by Wim Stockman - on 13 May 2022.

Saving Read Only file opened in Vim

Ever had the trouble after editing a file you cannot save it with vim since you forgot to open it with root permissions.

Well here is a nice hack around it. Using this little GNU tool called tee.

Use This command to save it ...

	:w !sude tee %

Found this information in a move of DT , distrotube.

Around minute 16 of this video

https://www.youtube.com/watch?v=KL29jcWu-1E

Have fun , hope you enjoy this teetorial :-].