Change default location of vimrc

前端 未结 8 1723
一向
一向 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:42

    I see two options, depending on your needs.

    1. Have ~/.vimrc import the other location
    2. create an alias in your bashrc alias vim="vim -u otherlocation"

提交回复
热议问题