1.pathogen Introduction:
normally installing the VIM plugin is to install all the plugins and related doc files in a folder, such as the $vim/vim74/plugin directory, under the $vim/vim74/doc directory, but the consequences of doing so are to modify and uninstall very cumbersome, Mixed together is not good to distinguish which plug-in file, the error is easy to cause vim errors.
pathogen is a plugin for managing plugins. Pathogen allows each plugin to occupy a separate directory, solving the problem of file dispersion.
2. Install pathogen, the plugin can not be placed in the $vim/vim74 and other VIM system directory, can only be placed in $HOME/.VIMRC or $HOME/_VIMRC user directory.
pathogen: Https://github.com/tpope/vim-pathogen, can be extracted directly after download. The pathogen plugin has only a single script pathogen.vim, so the so-called installation is to put it in the current user's ~/.vim/autoload directory. If the Windows user is placed inside the $home\vimfiles\autoload folder.
3. Start pathogen.
start pathogen According to the official (2016.6.13) configuration file VIMRC There are at least the following three commands.
Execute Pathogen#infect ()
Syntax on
filetype plugin indent on
4. Generate the Help file.
under Vim, enter ": Execute Pathogen#helptags ()".
5. Install the new plugin.
in the $home/.vim directory (where the AutoLoad directory is stored), create a new bundle directory and simply place the new plugin in the directory. Usually we use Git directory to implement, the advantage of using Git is that many plug-ins support the installation method, can automatically generate the plug-in subdirectory under the bundle, and can be updated with the official synchronization.
For example, installing the Markdown plugin:
CD ~/.vim/bundle
git clone https://github.com/plasticboy/vim-markdown.git
this pathogen automatically generates the Markdown subdirectory under the bundle directory and makes the plug-in effective.
6. Update and Uninstall plugins.
To update the plugin, simply enter the corresponding plugin directory under the $home/.vim/bundle directory and execute: "Git pull origin" to update.
To uninstall the plugin, simply delete the corresponding plugin directory in the $home/.vim/bundle directory.
Introduction to the plug-in management tool pathogen under vim