You are viewing a single thread.
View all comments 15 points
Is there an editor that can request root privileges without restarting it? That would be quite useful.
5 points
Sure, you can do this in emacs: https://fuco1.github.io/2017-04-20-Save-write-protected-files-with-sudo-automatically.html
4 points
11 points
2 points
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.
1 point
5 points
It’s a simple trick in Vim:
https://stackoverflow.com/a/7078429
For the lazy: :w !sudo tee > /dev/null %
9 points
4 points
4 points
*
4 points
*