Introduction to the plug-in management tool pathogen under VIM

Source: Internet
Author: User
Tags autoload using git git clone

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

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.