0

我在托管服务提供商的服务器上有一个帐户,但我无法安装自己的 vim 副本。所以我唯一能做的个性化是在我的帐户中编辑 .vimrc ,但这还不够

我想做的是:在启动时我想卸载所有插件和加载的东西,并告诉 vim 使用其他文件夹作为它的运行时。

知道如何接近它吗?

4

2 回答 2

3

你可以用-u NONE. 从手册页:

       -u {vimrc}  Use the commands in the file {vimrc}  for  initializations.
               All  the  other  initializations  are skipped.  Use this to
               edit a special kind of files.  It can also be used to  skip
               all  initializations by giving the name "NONE".  See ":help
               initialization" within vim for more details.

要在运行时更改$VIMRUNTIME,请使用

:let $VIMRUNTIME = "/new/path/"
于 2010-04-26T11:18:26.047 回答
1

要回答您的问题:您只需要runtimepath在文件中设置选项.vimrc,因为.vimrc在加载任何插件之前会读取您的选项。

但是,默认runtimepath值通常包括~/.vim文件夹(用于:set runtimepath?检查),因此您应该能够将所需的任何插件添加到~/.vim文件夹中。:let g:loaded_<plugin name> = 1您还可以通过在文件中添加一行来防止加载许多插件.vimrc。检查每个插件的帮助文档以了解如何执行此操作。

于 2010-04-27T02:10:15.993 回答