vim 插件管理_如何管理Vim插件?

vim 插件管理

The Vim plugin directory under ~/.vim seems messy—a plugin has different files in different directories and the files from different plugins are put together. This is hard to add/remove plugins.

~/.vim下的Vim插件目录看起来很乱-一个插件在不同目录中有不同的文件 ,并且来自不同插件的文件放在一起。 这很难添加/删除插件。

Is there any better method for managing them?

有没有更好的方法来管理它们?

I use pathogen and am very happy with it.

我使用病原体 ,对此感到非常满意。

After installing pathogen, any plugins you want to install can be extracted to a subdirectory under ~/.vim/bundle. These plugins will be added to the runtimepath. By this way, each plugin stays in one subdirectory and you can easily add/remove plugins.

安装病原体后,您要安装的所有插件都可以解压缩到〜/ .vim / bundle下的子目录中。 这些插件将添加到runtimepath 。 通过这种方式,每个插件都位于一个子目录中,您可以轻松添加/删除插件。

Installation of pathogen

病原体的安装

Installation on Linux.

Linux上安装。

mkdir -p ~/.vim/autoload ~/.vim/bundle; 
curl -Sso ~/.vim/autoload/pathogen.vimhttps://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim

Then, add this to your vimrc:

然后,将其添加到您的vimrc中:

execute pathogen#infect()

To regenerate help tags:

要重新生成帮助标签:

:Helptags

For more details, please refer to pathogen’s README.

有关更多详细信息,请参阅病原体的自述文件

Answered by anonymous.
匿名回答。

翻译自: https://www.systutorials.com/how-to-manage-plugins-for-vim/

vim 插件管理

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值