Vundle Management Plugin

Source: Internet
Author: User

Preface: If you do not use Vundle, the installation of plug-ins, configuration and management of the relative will be troublesome, once did not use vundle when I often encountered unable to install some VIM plug-ins. But after using Vundle you just add a line to the file and then install the plugin. Just say a little bit about the use of Vundle, I believe you will love it. Original sticker: http://www.jianshu.com/p/mHUR4e
Steps:
1. First install VIM, install Vim method see Vim configuration Chapter
2. Create folder ~/.vim and file ~/.VIMRC
Enter your home directory to create the. Vim folder and. vimrc file
3. Installing Vundle

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

Git commands are available under CentOS

Yum Install git

4. Edit the following to the. vimrc file

SetNocompatible"Be improvedFileType off"required!Setrtp+=~/.vim/bundle/vundle/Call VUNDLE#RC ()"Let Vundle manage Vundle"required!Bundle'Gmarik/vundle'"My Bundles here:""original repos on GitHubBundle'tpope/vim-fugitive'Bundle'lokaltog/vim-easymotion'Bundle'Rstacruz/sparkup', {'RTP':'vim/'}bundle'Tpope/vim-rails.git'"vim-scripts ReposBundle'L9'Bundle'Fuzzyfinder'"Non GitHub reposBundle'Git://git.wincent.com/command-t.git'"git repos on your local machine (ie. when working on your own plugin)Bundle'File:///Users/gmarik/path/to/plugin'" ...filetype plugin indent on"required!""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.

Here are some explanations for the above file

SetNocompatible"Be improvedFileType off"required!Setrtp+=~/.vim/bundle/vundle/Call VUNDLE#RC ()"Let Vundle manage Vundle"required!Bundle'Gmarik/vundle'"My Bundles here:#以后你想安装什么插件可以写在下面""original repos on GitHub#如果你的插件来自github, write at the bottom, as long as the author name/project name on the line bundle'tpope/vim-fugitive'#如这里就安装了vim-Fugitive this plugin bundle'lokaltog/vim-easymotion'Bundle'Rstacruz/sparkup', {'RTP':'vim/'}bundle'Tpope/vim-rails.git'"vim-scripts Repos#如果插件来自 vim-scripts, you just write the plugin name. Bundle'L9'Bundle'Fuzzyfinder'"Non GitHub repos#如使用自己的git库的插件, do the bundle like this'Git://git.wincent.com/command-t.git'"git repos on your local machine (ie. when working on your own plugin)Bundle'File:///Users/gmarik/path/to/plugin'" ...filetype plugin indent on"required!some of #下面是 Vundle's command will be used""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.
#这里可以写一些你自己的配置

5. Install your plugin
(1) Save to exit the current vim
(2) Re-open vim, enter the command: Bundleinstall, and then start to install your plug-in.
6. How to remove Plugins
(1) Edit the. vimrc file to remove the plug-in line you want to remove
(2) Save to exit the current vim
(3) Re-open vim, enter the command: Bundleclean.
Very convenient step, pro-test available, no longer have to worry about managing vim plugin.

Vundle Management Plugin

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.