You're viewing a single thread.
View all comments
43
comments
Lazy vim way I do it:
ggVG"wY:q!
followed bysudo !!
thenVG"wp:x
Grab entire file and stuff it in register W
Exit file
Reopen sudo
Select all and replace with register W them write
27 1 ReplyNow I understand how the Adeptus Mechanicus feel when they perform a ritual power-on.
28 0 ReplyIt's funny how years of use make that so intuitive but spelled out it's a garbled mess
10 0 Reply
Lazier way:
:w !sudo tee %
10 0 ReplyYeah learning about
tee
from this thread honestly.It's been interesting realizing I had such a useful tool at my disposal but never knew
2 0 Reply
You've viewed 43 comments.
Scroll to top