this post was submitted on 01 Nov 2024
62 points (75.0% liked)

Linuxsucks

351 readers
1 users here now

Rules:

  1. FOSS advocates and Linux evangelists aren't welcome. -We ask that you block us.
  2. Moderation is heavy handed. Try to stay on topic (that is LINUXSUCKS!).
  3. No Complaining Mute the sub if users, content, or rules bother you *it's ok to report rule violations

founded 11 months ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] billbasher@lemmy.world 18 points 10 months ago (2 children)

:w !sudo tee %

If you are in vim you can do this

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

Does it work in Helix as well?

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

[–] madthumbs@lemmy.world -3 points 9 months ago

Does it have the same effect as sudoedit?