Questions tagged [sudo]
The sudo tag has no usage guidance.
4
questions
2
votes
3answers
1k views
Saving a non user file with NeoVim, eg root owned /etc/pulse/default.pa
I am using NeoVim v0.4.3.
This is the latest version available in repository.
I have an Arch build with the most up to date packages and kernel 5.6.4-arch1-1.
Occasionally I edit a file with nvim ...
1
vote
2answers
4k views
How to open a file as sudo from within vim?
After opening vim as normal user. Is it possible to open a new file as sudo user? like for example in :e file.
5
votes
1answer
802 views
How can I automate filetype detection when using sudoedit?
sudoedit/sudo -e is often used for safely editing files as root. The way it works:
sudoedit copies the named files to temporary files
Then it opens the temporary files using the commands specified by ...
2
votes
1answer
834 views
How do I preserve my colorscheme when I sudo to root?
I have many users who sudo to root to edit certain files. How can I allow each of them to use their own ~/.vimrc file once they have sudo'd to root? In other words. they each want to use their own ...