Vim Installation Plugin

Source: Internet
Author: User
Tags autoload

Vim Installation Plugin

Release data:2015.03.28

Transferred from: Vimchina

The functionality of VIM itself is already very powerful, usually without the need to install additional plugins. Carefully study Vim's own functions and corresponding configuration items to realize the power of vim omnipotent.
However, Vim is not exhaustive, so for many years there has been Daniel to contribute to vim, although not incorporated into the vim source code, but it is highly recommended.
Here are three ways to install the plug-in, there are methods suitable for the general user, there is a more Geek way.

Download the decompression and installation website

First, go to the Vim website to search for and download the required plugins, and copy the compressed package to the Runtime directory ~/.vim or vimfiles (Windows system).

Then, unzip the package into the current directory . At this point, the installation package will extract the autoload doc syntax and other directories, if the runtime directory already has the above directory, then the plugin will automatically copy files to those directories.

Finally, open a Vim, and in the command-line mode, enter the command to :helptags create a Help file index. So the plugin is installed, you can enjoy the convenience of plug-ins.

Easy to install and manage plugins with pathogen

The installation method mentioned above is simple and practical, but there is a serious problem: if you want to uninstall a plugin, it is difficult to find out which file or files should be deleted. Because all the plugins have copied the files to a directory. If the different plugins can be placed separately, so Vim core developer Tim Pope developed a plug-in pathogen to manage all the other plugins.

Here's how to manage plugins with pathogen:

First, download the pathogen, copy to .vim or vimfiles unzip the directory. This script Pathogen.vim should be placed in the autoload directory, or directly to the file Pathogen.vim copy to . Vim/autoload or vimfiles\autoload below.

To edit the Vim configuration file .vimrc or _vimrc (Windows system), add the following code:

Execute Pathogen#infect ()

Then, go to the Vim website to search for and download the required plug-in, copy the compressed package to the directory .vim/bundle or vimfile\bundle (bundle directory needs you to create). Then unzip the file can choose to extract to their own directory.

Finally, run the command :Helptags (note H caps Oh!) to establish a Help index. This command can be executed after the new plugin is installed.

Install/uninstall/update plugins intelligently with Git and Vundle (Geek style)

First, there are git tools available within the system. Linux and OSX are often readily available, and Windows systems need to install msysgit. To .vim/bundle run a command within a directory:

git clone https://

Then, edit the configuration file .vimrc or _vimrc (Windows system) and add the following code:

set Nocompatiblefiletype offset RTP+=~/.vim/bundle/vundlecall vundle#rc ()" let vundle Manage Vundle'gmarik/vundle'"  original repos on GitHub' Jiangmiao/auto-pairs '

Finally, the command is executed within Vim : Bundleinstall installs the plugin, executes : Bundleupdate is the update plugin, delete the above : Bundle ... OK, then After execution : Bundleclean is the uninstall plugin.

Add a list of plugins I'm using and need to work with Vundle
set Nocompatiblefiletype offset RTP+=~/.vim/bundle/vundlecall VUNDLE#RC ()"Let Vundle manage VundleBundle'Gmarik/vundle'"original repos on GitHubBundle'Jiangmiao/auto-pairs'Bundle'tpope/vim-fugitive'Bundle'Tpope/vim-surround'Bundle'Lokaltog/vim-powerline'Bundle'scrooloose/syntastic'Bundle'Scrooloose/nerdcommenter'Bundle'Scrooloose/nerdtree'Bundle'Plasticboy/vim-markdown'Bundle'terryma/vim-multiple-cursors'Bundle'Jidzhang/vimcdoc'"vim-scripts Repos"Https://github.com/vim-scripts/xx.gitBundle'Taglist.vim'Bundle'A.vim'Bundle'Fencview.vim'

Vim Installation Plugin

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.