355
you are viewing a single comment's thread
view the rest of the comments
[-] bjoern_tantau@swg-empire.de 15 points 6 months ago

Is there an editor that can request root privileges without restarting it? That would be quite useful.

[-] h3rm17@sh.itjust.works 11 points 6 months ago

In vim, in normal mode you can do: :w !sudo tee %

[-] z3rOR0ne@lemmy.ml 2 points 6 months ago

Apparently that doesn't work in NeoVim, so recently I installed the suda plugin.

Personally, I just doas nvim and then the file name that needs root access, but it's a handy plugin in case I forget.

[-] dream_weasel@sh.itjust.works 1 points 6 months ago

??? I used this in neovim twice today

:w !sudo tee % then reload when it asks.

load more comments (8 replies)
this post was submitted on 24 Mar 2024
355 points (95.4% liked)

linuxmemes

20842 readers
2089 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS