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

Linuxsucks

171 readers
58 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
[–] [email protected] 16 points 2 weeks ago (2 children)

:w !sudo tee %

If you are in vim you can do this

[–] [email protected] 2 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

Does it work in Helix as well?

[–] [email protected] 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.