更改 vimrc 的默认位置 [英] Change default location of vimrc

查看:32
本文介绍了更改 vimrc 的默认位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Vim 中,是否可以更改用户 vimrc 文件的默认位置,即从 $HOME/.vimrc 到其他位置?

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

推荐答案

你必须用命令启动 vim vim -u ./path/to/your/vimrcfile

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

vim -u NONE 是一种无需任何插件或自定义即可启动 Vim 的好方法.

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

有关详细信息,请参阅 :help starts.txt.

See :help starting.txt for more information.

这篇关于更改 vimrc 的默认位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆