Change default location of vimrc

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

    I feel like the simplest solution is to just have a single line in ~/.vimrc that loads the vimrc from the other location, i.e.:

    source PATH/TO/OTHER/LOCATION/.vimrc
    

提交回复
热议问题