madthumbs@lemmy.worldM to Linuxsucks@lemmy.worldEnglish · 3 months agoSudoeditlocklemmy.worldimagemessage-square41fedilinkarrow-up193arrow-down130
arrow-up163arrow-down1imageSudoeditlocklemmy.worldmadthumbs@lemmy.worldM to Linuxsucks@lemmy.worldEnglish · 3 months agomessage-square41fedilink
minus-squarebillbasher@lemmy.worldlinkfedilinkEnglisharrow-up17·3 months ago:w !sudo tee % If you are in vim you can do this
minus-squarestoicmaverick@lemmy.worldlinkfedilinkEnglisharrow-up2·edit-23 months agoDoes it work in Helix as well?
minus-squarebillbasher@lemmy.worldlinkfedilinkEnglisharrow-up2·3 months 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.
minus-squaremadthumbs@lemmy.worldOPMlinkfedilinkEnglisharrow-up1arrow-down4·24 days agoDoes it have the same effect as sudoedit?
: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.
Does it have the same effect as sudoedit?