this post was submitted on 01 Nov 2024
66 points (79.5% liked)

Linuxsucks

175 readers
69 users here now

Shit on Desktop Linux and its evangelists here

No evangelizing for Linux

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

:w !sudo tee %

If you are in vim you can do this

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

Does it work in Helix as well?

[–] billbasher@lemmy.world 2 points 2 weeks 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.