Add an option to write files with escalated privileges (sudo) #11229
Replies: 3 comments 3 replies
-
|
you can use sudo-edit for this. This doesn't need to be builtin into the editor. |
Beta Was this translation helpful? Give feedback.
-
|
This feels illegal, but adding this to your Helix config file should work... This macro is activated by pressing the
The reasoning for the immediate exit is to salvage your modifications. This allows you to quickly reopen the file via |
Beta Was this translation helpful? Give feedback.
-
|
That would be strange to have helix switcing user while editing a file. Also, I do not have |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Add a command that will try to write files that current user doesn't have write permissions to with sudo or maybe add that functionality to the existing
:write.Similar to vim-suda.
neovim-suda.mp4
Beta Was this translation helpful? Give feedback.
All reactions