By default the VIM plugin is installed to put all the plugins and related doc files in a folder, such as the $vim/vim/vim74/plugin and $vim/vim/vim74/doc directories, and the consequence is that the modification and uninstallation are cumbersome, It is also not easy to distinguish which file belongs to which plugin. So before installing other plugins, it's a good idea to install pathogen, which will make it easier for you to install other plugins. Pathogen allows each plugin to occupy a separate directory, solving the problem of file dispersion.
1. Pathogen plug-in 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.
$ cd ~$ mkdir .vim/bundle$ mkdir .vim/autoload
2. Download pathogen
by Git:git clone Https://github.com/tpope/vim-pathogen
Or: wget Https://github.com/tpope/vim-pathogen
Pathogen plugin only has a single script pathogen.vim, put it in the current user's ~/.vim/autoload directory can be
3. Start pathogen
In ~/.VIMRC (if not, create a new) file to add the following:
call pathogen#infect() syntax on filetype plugin indent on
4. Install the new plugin
Put the new plugin in the ~/.vim/bundle
directory. You can usually use the Git directory to do this, or you can download the compressed package to unzip directly
5. Uninstalling plugins
Just delete the corresponding folder to
Vim Sword's plugin management pathogen