madthumbs@lemmy.worldM to Linuxsucks@lemmy.worldEnglish · 5 days agoSudoeditlemmy.worldimagemessage-square41fedilinkarrow-up188arrow-down119
arrow-up169arrow-down1imageSudoeditlemmy.worldmadthumbs@lemmy.worldM to Linuxsucks@lemmy.worldEnglish · 5 days agomessage-square41fedilink
minus-squarebillbasher@lemmy.worldlinkfedilinkEnglisharrow-up16·5 days ago:w !sudo tee % If you are in vim you can do this
minus-squarestoicmaverick@lemmy.worldlinkfedilinkEnglisharrow-up2·edit-25 days agoDoes it work in Helix as well?
minus-squarebillbasher@lemmy.worldlinkfedilinkEnglisharrow-up2·4 days agoIt looks like you can run shell commands so it should be possible although the syntax may be a bit different. I haven’t used Helix.
:w !sudo tee %
If you are in vim you can do this
Does it work in Helix as well?
It looks like you can run shell commands so it should be possible although the syntax may be a bit different. I haven’t used Helix.