Change default location of vimrc

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

    You must start vim with the command vim -u ./path/to/your/vimrcfile

    vim -u NONE is a good way to start Vim without any plugin or customisation.

    See :help starting.txt for more information.

提交回复
热议问题