• @billbasher
    link
    English
    172 months ago

    :w !sudo tee %

    If you are in vim you can do this

    • madthumbsOPM
      link
      English
      -25 days ago

      Does it have the same effect as sudoedit?

    • @stoicmaverick
      link
      English
      2
      edit-2
      2 months ago

      Does it work in Helix as well?

      • @billbasher
        link
        English
        22 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.