vim-pathogen is a
runtimepath manager created by Tim Pope to make it easy to install plugins and runtime files in their own private directories.
Put pathogen in
~/.vim/bundle (here with Git, but it's not mandatory):
git clone https://github.com/tpope/vim-pathogen.git
Add the following lines to the top of your
" enable vim-pathogen runtime bundle/vim-pathogen/autoload/pathogen.vim execute pathogen#infect()
runtimedirective specifies the path to the autoload script of
execute pathogen#infect()initiates it.
Once initiated, Pathogen will automatically start a sweep through the folders in
~/.vim/bundle and load the plugin from each of them.
~/.vim/bundle/to make it available next time you start Vim.
:Helptagsto index your new plugin's documentation.
.vimrcstays clean from the configuration needed to load plugins.
The effort needed to "manage" a plugin is thus reduced to:
~/.vim/bundle/to install it,
How you perform those three actions (manually, via an automation tool, with Git/Svn/Hg/whatever…) is completely up to you.