this post was submitted on 01 Nov 2024
69 points (82.2% liked)

Linuxsucks

133 readers
144 users here now

Shit on Desktop Linux and its evangelists here

No evangelizing for Linux

founded 3 weeks ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] billbasher@lemmy.world 16 points 4 days ago (1 children)

:w !sudo tee %

If you are in vim you can do this

[–] stoicmaverick@lemmy.world 2 points 4 days ago* (last edited 4 days ago) (1 children)

Does it work in Helix as well?

[–] billbasher@lemmy.world 2 points 4 days ago

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.