Since I am not the root user I cannot edit the /etc/vimrc file. I need to specify some vim parameters for my account. for example

set number;

how can i set these variables to my user account configuration for vim?

2 Answers 2


Use ~/.vimrc.


you can edit your own .vimrc file, then save it to ~/.vimrc

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.