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

Linuxsucks

260 readers
2 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 4 months ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] billbasher 17 points 3 months ago (3 children)

:w !sudo tee %

If you are in vim you can do this

[–] stoicmaverick 2 points 3 months ago* (last edited 3 months ago) (1 children)

Does it work in Helix as well?

[–] billbasher 2 points 3 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.

load more comments (1 replies)