Vundle of VIM plugin management

Source: Internet
Author: User

Vim is a well-known, powerful, highly customizable text editor similar to VI, which improves and adds many features on the basis of VI. Thanks to its customizable features,

Many of the Vim plugins were born. Managing these plugins has become one of our biggest headaches, and has recently stumbled upon the Vundle----which is characterized by the use of Git to manage plugins,

Update convenient, support search, one-click Update, from then only need a VIMRC walk the world. So let's take a look at how to install and configure Vundle:

1. Create the. Vim/bundle directory under the user root directory (if these directories are not in the user root directory)

2. Copy the Vundle to the./vim/bundle:git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

3. Configure Vundle: Create the. vimrc file in the user root directory (if not) and copy the following code to the file:

SetNocompatible"Be improved, requiredFileType off"Required"set the runtime path to include Vundle and initializeSetrtp+=~/.vim/bundle/vundle.vimcall vundle#begin ()"Alternatively, pass a path where vundle should install plugins"Call vundle#begin (' ~/some/path/here ')"Let Vundle manage Vundle, requiredPlugin'Vundlevim/vundle.vim'"The following is examples of different formats supported."Keep Plugin commands between vundle#begin/end."plugin on GitHub repoPlugin'tpope/vim-fugitive'"plugin from http://vim-scripts.org/vim/scripts.htmlPlugin'L9'"Git plugin not hosted on GitHubPlugin'Git://git.wincent.com/command-t.git'"git repos on your local machine (i.e. when working on your own plugin)Plugin'File:///home/gmarik/path/to/plugin'"The sparkup vim script is in a subdirectory of this repo called Vim."Pass The path to set the Runtimepath properly.Plugin'Rstacruz/sparkup', {'RTP':'vim/'}"Avoid a name conflict with L9Plugin'User/l9', {'name':'newL9'}"All of your Plugins must is added before the following lineCall Vundle#end ()"RequiredFileType plugin indent on"Required"to ignore plugin indent changes, instead use:"filetype plugin on""Brief Help (Introduction)":P luginlist-lists configured plugins (List of plugins already configured)":P lugininstall-installs plugins; Append '! ' to update or just:P luginupdate (install plugin; add "!" means to upgrade files or just use pluginupdate)":P luginsearch foo-searches for foo, append '! ' to refresh local cache (find related plugins)":P luginclean-confirms removal of unused plugins; Append '! ' to auto-approve removal (cleaning up related plugins)""see:h Vundle For more details or wiki for FAQ (use ": H" to view Help)"Put your non-plugin stuff after this line

4. Install the plugin: Run vim, and then run the ":P lugininstall" command to install the. vimrc file with the plug-in configured

For more information, please visit the official website of Vundle .

Vundle of VIM plugin management

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.