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 improved filetype off" required! Set RTP + = ~ /. Vim/bundle/vundle/call vundle # RC () "Let vundle manage vundle" required! Bundle 'gmarik/vundle' "My bundles here:" "original repos on GitHub bundle 'tpope/vim-Fugitive 'bundle' lokaltog/vim-easymotion 'bundle' rstacruz/sparkup ', {'rtp ': 'vim/'} bundle 'tpope/vim-rails.git '"vim-scripts repos bundle' 'd9'bundle' fuzzyfinder'" non GitHub repos bundle' 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.