Make vim read the vimrc from ~/.vim/vimrc

terminal

This may not be the best place to ask this question but I'm having trouble getting vim to read my vimrc file. If I have it in the home directory as ~/.vimrc then it ready just fine but if I move it ~/.vim/vimrc so that I can take advantage of plugins and a few other things, it no longer reads the vimrc. I can't remember what I was supposed to do to make it read the correct vimrc.

Best Answer

A method of blindly loading all your plugins, assuming they are all in ~/.vim/plugins, would be putting the following in your ~/.vimrc:

source glob(~/.vim/plugins/*.vim)