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?


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.

  • I am using wsl Ubuntu on Windows so I am kinda restricted to commands. Another thing I was worried about was that the these vimrc files are named "vimrc" and not ".vimrc". How do I change that Nov 18 '18 at 17:45
  • @user3262922 run the command mv vimrc .vimrc from your home (~) folder.
    – Shadoath
    Nov 19 '18 at 17:10

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.