Answer the question
In order to leave comments, you need to log in
How to set vimrc file settings for sudo login?
I work with Centos 6.5_x86. Disabled login as root, enabled my user. Created ~/.vimrc file in both home directories
syntax on
set number
Answer the question
In order to leave comments, you need to log in
what does sudo mean?
sudo -s - will pick up the user environment under which they were originally.
sudo -i - will apply the environment of the user to which you are elevating privileges. That is the environment of the root.
Choose whichever is more convenient for you.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question