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.
有关更多详细信息,请参阅病原体的自述文件 。
翻译自: https://www.systutorials.com/how-to-manage-plugins-for-vim/
vim 插件管理

被折叠的 条评论
为什么被折叠?



