如何将病原体安装指令转换为vundle?

How to convert pathogen installation instructions to vundle?

我使用 Vundle 来管理我的插件。但是,有些插件只有手动安装或使用 Pathogen 安装的说明。例如:

install details

Installation With Pathogen:

  1. Place in pathogen directory

Installation W/Out Pathogen:

  1. Place in .vim/indent directory, or anywhere in your runtime path.
  2. If placed outside of .vim/indent directory, 
         set g:js_indent = /location/to/javascript.vim in your
        .vimrc file. (This tells the html.vim file where to find
        the javascript indent file)

Source: http://www.vim.org/scripts/script.php?script_id=3081

有没有办法将 Pathogen 安装说明转换为与 Vundle 一起使用?

或者我应该同时安装 Pathogen 和 Vundle,并使用我想要安装的插件最支持的那个?

Pathogen 只是扩展了您的 'runtimepath' 以在 ~/.vim/bundle/... 下包含单独的插件目录(但不关心您如何在其中安装插件)。后来,像 Vundle 这样的插件复制了这个想法并添加了从 GitHub 和其他位置自动更新的功能。

只要你有一个 Vundle 支持的安装位置,使用它应该是微不足道的。对于提到的插件,这应该是(使用 vim-scripts.org GitHub 镜像:

Plugin 'JavaScript-Indent'

总结

您不需要插件的明确说明即可通过插件管理器进行安装。只要支持安装位置,按照Vundle's quick start即可。 Vundle 提供了 Pathogen 的超集;你永远不需要两者。