Change default location of vimrc

前端 未结 8 1711
一向
一向 2020-12-13 05:52

In Vim, is it possible to change the default location of the user vimrc file, i.e., from $HOME/.vimrc to some other location ?

8条回答
  •  不思量自难忘°
    2020-12-13 06:24

    Another solution might be to create a symlink to you preferred location. I have my .vimrc in $HOME/.vim/.vimrc and symlink to it. This way I can have it in a git repo and backup it.

提交回复
热议问题