Vim plug-in management bundle

Source: Internet
Author: User

Anyone who has experience using and configuring Vim knows that Vim can be comparable to ide after configuration ~

 

However, it is also very troublesome to configure Vim. Many times, when we need to change the system or back up data to other machines for use

It is very troublesome. Apart from copying the configuration file, we also need to copy all the plug-ins. This is indeed a pain point ~

 

Recently, I found a new management plug-in, vundle, on GitHub. It feels pretty good. However, it feels like this plug-in has

It has been around for a long time. If that is the case, I can only tell you later.

 

Vundle is easy to use.

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

Then add the following configuration in the. vimrc file:

?
Set nocompatible "be improvedfiletype off" required! Set RTP + = ~ /. 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 'd9'bundle' fuzzyfinder'" non GitHub reposbundle' git: // git.wincent.com/command-t.git '"... filetype plugin indent on "required! "" Brief help -- The vundle command is used later. ": 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 ..

Well, managing plug-ins is that simple. If you want to install plug-ins, you can go to git or vim-scripts to find them.

Add the plug-in you need to the configuration file.

 

Next, let's talk about how to make Vim more gorgeous. In the past, the statusline. Vim plug-in was used to use the status bar, and now there is a gorgeous

Power-line. Let's see a picture first ~


The status bar not only displays colors, but also converts colors based on different states ~ Very gorgeous ~

 

Install the power-line plug-in combination with vundle ~ And perform related configuration.

As shown above, I added the GIT source of the vundle plug-in. The installation method is provided in the preceding configuration file. (: Bundleinstall)

Then perform simple configuration.

 

Just a few simple steps, a gorgeous and customized artifact has a prototype. To add other plug-ins, you only need

And vundle is managed. I have added some other plug-ins by myself. The method is as follows:

The advantage of using vundle is obvious. Even if you need to change the machine or save the backup, you only need to save the configuration file.

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.