Vim plug-in Manager Vundle and vimvundle

Source: Internet
Author: User

Vim plug-in Manager Vundle and vimvundle

I. Introduction

Vundle (Vim bundle) is a Vim plug-in manager. It integrates git operations. All you need to do is to find the desired plug-in name on GitHub. vundle can be used for installation, update, and uninstallation.

Compared with modern editors such as Sublime and Text2, Vim lacks the default plug-in manager, and all plug-in files are distributed in ~ /. In several folders under vim, the Vim configuration process is to constantly search for plug-ins on the Internet and copy them ~ /. Vim. If an update is found, you need to download it again and copy it again. If you want to delete a plug-in that does not need it, you must be careful not to delete the error. It takes a lot of patience and luck to configure Vim.

 

Ii. Installation and Use

Run the following command to download and install Vundle from GitHub:

git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle

Default installation directory

~/.vim/bundle/vundle

 

Iii. configuration instructions

Vundle automatically downloads and manages plug-ins. Therefore, you only need to fill in the required plug-in name. For different types of plug-ins, there are different address filling methods, which can be divided into three types, specifically:

1. For repos under Github vim-scripts users, you only need to write the repos name
2. For repos under other Github users, you need to write "User Name/repos name"
3. If the plug-in is not on Github, you need to write the full git path.

Configuration instructions

 

Iv. Configuration example

Configure various Bundle in the ". vimrc" file in the following format:

Set nocompatible "be iMprovedfiletype off" required! /** From this line, vimrc configuration **/set rtp + = ~ /. Vim/bundle/vundle/call vundle # rc () "let Vundle manage Vundle" required! Bundle 'gmarik/vundle' "My Bundles here:/* plug-in configuration format */" "original repos on github (non-vim-scripts repository plug-ins on the Github website, fill in the following format) Bundle 'tpope/vim-fugitive 'bundle' Lokaltog/vim-easymotion 'bundle' rstacruz/sparkup ', {'rtp ': 'vim/'} Bundle 'tpope/vim-rails.git' "vim-scripts repos (in the vim-scripts repository, in the following format) bundle 'd9'bundle' FuzzyFinder '"non github repos (not in the above two cases, in the following format) Bundle 'git: // git.wincent.com/command-t.g It '"... filetype plugin indent on" required! /** Vimrc file configuration ends **/"/** 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 are not allowed ..

Tip: The Vim plug-in name may have duplicate names. In this case, you need to add the author's last name after the plug-in, for example, Bundle 'javascript-indentation'. If the plug-in name is empty or has a slash, replace spaces and slashes -.

 

V. Plug-in Installation

After the configuration is complete, save and exit, open vim, Run ": BundleInstall", or run "vim + BundleInstall + qall" on the command line to install the plug-in, after the installation is complete, the plug-in can be used.

Vi. Common Vundle commands

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.