Vim Plugin plugin manager vundle

Source: Internet
Author: User

First, Introduction

Vundle (Vim bundle) is a vim plug-in manager. It is to integrate GIT operations, the user needs to do is to go to GitHub to find the name of the plugin they want to install, update and uninstall can have vundle to complete.

Compared to sublime, Text2 and other modern editors, Vim lacks the default plug-in Manager, all the plug-in files are scattered in several folders under ~/.vim, the process of configuring Vim, is to search the plug-in online, copy to ~/.vim, find updates, to re-download re-copy, Want to delete some do not need to plug-ins, but also to be careful not to delete the wrong. It takes a lot of patience and luck to configure a handy vim.

Second, installation and use

Execute the following command to download and install Vundle from GitHub

git clone https://~/.vim/bundle/vundle

Default installation directory

~/.vim/bundle/vundle

Third, configuration instructions

Vundle will automatically download and manage plugins, so just fill in the required plug-in name. For different types of plug-ins, there are different ways to fill in the address, can be divided into three categories, specifically as follows:

1, in GitHub vim-scripts user under the repos, only need to write out the repos name
2, repos under other GitHub users, need to write " User name/repos name "
3. Plugin not on GitHub, need to write git full path

Configuration directives

Iv. Configuration Examples

Configure the various bundles in the ". VIMRC" file, in the following format:

Set nocompatible"Be improvedfiletype off"required!/** Starting from this line, VIMRC configuration **/Set RTP+=~/.vim/bundle/vundle/Call VUNDLE#RC ()"Let Vundle manage Vundle"required!Bundle'Gmarik/vundle' "My Bundles here:/* Plugin configuration format */""original repos on GitHub (the plugin for non-vim-scripts warehouses on the GitHub site, fill in the form below)Bundle'tpope/vim-fugitive'Bundle'lokaltog/vim-easymotion'Bundle'Rstacruz/sparkup', {'RTP':'vim/'}bundle'Tpope/vim-rails.git'"vim-scripts Repos (vim-scripts Warehouse, fill in the form below)Bundle'L9'Bundle'Fuzzyfinder'"non GitHub repos (not in the above two cases, fill in the form below)Bundle'Git://git.wincent.com/command-t.git'" ...filetype plugin indent on"required!/** vimrc file configuration End **/"/** vundle Command **/"Brief Help": Bundlelist-list configured Bundles": Bundleinstall (!)-Install (update) Bundles": Bundlesearch (!) Foo-search (or refresh cache first) for Foo": Bundleclean (!)-Confirm (or auto-approve) removal of unused bundles""see:h Vundle For more details or wiki for FAQ"note:comments after Bundle command is not allowed.

Hint: The name of the Vim plugin may have duplicate names, it is necessary to add the author's surname after the plugin, such as bundle 'javascript-indentation', When you encounter a plug-in name with spaces and slashes, you need to replace the space and slash with-.

Five, plug-in installation

After the configuration is complete, save exit, open a Vim, run ": Bundleinstall" or run "vim +bundleinstall +qall" on the command line, you can install the plug-in, the plug-in will be ready to use after the installation is complete.

Vi. Common commands of Vundle

Vim Plugin plugin manager vundle

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.