Vim Sword's plugin management pathogen

Source: Internet
Author: User
Tags autoload git clone

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.