31
suedit.nvim — A plugin to easily edit root files
(github.com)
cmap w!! w !sudo tee > /dev/null %
I have a few
suggestion
question
how it is different from the alternative?
I made this because I wanted to be able to change the command used for saving, and also so that I don't need to use any special commands to edit files in the first place. I just open the file I want to edit and if it needs sudo to edit, it prompts me.
does it work in Windows?
No. I don't use Windows so I'm not really interested in getting it to work.