Questions tagged [sudo]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
2k 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
541 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
631 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 ...