How do I open a file in the file-manager "ranger" with superuser rights?
While ":open_with vim" opens the file as none root with vim,
I am looking for something like ":open_with sudo vim", but that does not work.
file managementrangerrootsudo
How do I open a file in the file-manager "ranger" with superuser rights?
While ":open_with vim" opens the file as none root with vim,
I am looking for something like ":open_with sudo vim", but that does not work.
Best Answer
According to man:
In your case you would need to use
:open_with r vim