How do I use a custom vimrc file?

I have just started using vim and I find a bunch of vimrc files online. How exactly do I tell vim to use this vimrc as the default vimrc. I know I can copy every time but is there a better way to do this?

0

1 Answer

All you have to do is to save the downloaded file and save it to the home directory with the name .vimrc (the full path of the file would then be ~/.vimrc). VIM will automatically detect the file and use it appropriately.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like