rubyvim

How to set path for vim config files?


I know they say to store your vim config files under source control.

Is there a way to tell vim where the config files are? like .vimrc etc.?

i.e. I will store them in a different folder where my other git repos are.

BTW, what are good coloring plugins for ruby?


Solution

  • You can use the VIM environment variable to change the location of your ~/.vim/ directory, if you want to keep all your git repos in one place. See the :help $VIM section for more details, but here's the bit that looks most useful:

    The environment variable "$VIM" is used to locate various user files for Vim,
    such as the user startup script ".vimrc".  This depends on the system, see
    |startup|.
    

    If you add export VIM=/home/blankman/git/vim/ to your ~/.bashrc, you ought to be set.