Plug-in installation in Vim and several common plug-ins

Source: Internet
Author: User
Brief Introduction

Vim has become very powerful after configuration, enough for us to do our daily tasks, but these are not enough to match the IDE. This time VIM's more powerful extension mechanism stands out, vim can install a variety of plug-ins. Like Firefox and Chrome's various plug-ins, they will make our tools more perfect. Management of Plug-ins

Vim can be fully customized through Plug-ins. However, because of its advanced configuration, you may need to spend some time on its plug-in system to be able to personalize vim efficiently. But Vundle can help us do the work.
Vundle Full name Vim Bundle is a VIM plug-in management tool that allows us to easily install, update, and search for Vim plug-ins.
Vundle Installation: Enter instructions when GIT is installed in the current environment

Now set your. vimrc file

Set Nocompatible              "This is required 
filetype off                  " This is required 

you set the runtime path setting 
Rtp+=~/.vim/bundle/vundle.vim  

"Vundle Initialize 
call Vundle#begin ()  

" This should always be the first 
Plugin ' Gmarik/vundle.vim ' "This 

example comes from https:// Github.com/gmarik/vundle.vim README 
Plugin ' tpope/vim-fugitive '  

from http://vim-scripts.org/vim/ scripts.html plugin 
Plugin ' L9 '  

is not hosted on the GitHub git plugin 
Plugin ' git://git.wincent.com/command-t.git  

' "The Git software Library on the local machine (that is, when writing your own plug-in) 
Plugin ' File:///home/gmarik/path/to/plugin '  

" sparkup vim script in the software Kuzi directory named Vim. 
"passes the path and sets the runtime path reasonably. 
Plugin ' Rstacruz/sparkup ', {' RTP ': ' vim/'} 

' and L9 avoid name conflicts Plugin ' User/l9 ' 
, {' name ': ' newL9 '}  

' Each plug-in should call  

Vundle#end () before this line.            
installation of Plug-ins

1. Download the plugin to the. Vim directory and unzip it;
2. In. VIMRC: Bundle ' username/repos name ' (username refers to the owner of Repos in GitHub)
3. Enter VIM input: Bundleinstall Common plug-in 1.NERDTree

NERD trees is a tree file management plug-in that facilitates browsing directories and files in the current directory. 2.Tagbar

The plugin allows you to browse the tag contained in the source file and provide a structure for the source file. The plugin on its official website says: "It does this by creating a sidebar, and then showing a certain sequence of tags extracted from the current file in Ctags." This means, for example, that the methods in C + + will be shown in the class within which they are defined. " 3.YouCompleteMe

Youcompleteme is a fast, fuzzy-matching vim code completion engine. Because it is based on the Clang engine provides code hints for c/c++/objective-c, it also supports the engine for other language code hints. Youcompleteme also integrates syntastic, so once you write your code with a syntax error, you will have a red error prompt. 4.CTRLP

CTRLP is a pretty good plug-in, the main function is to make a vague search of files, if your working directory structure is complex, or you are reading a larger project, then CTRLP can help you quickly navigate to the file you want without the end of the CD, LS. 5.Molokai

This is a vim color theme that adds some syntax highlighting. 6.Surrond

Surround can easily insert various symbols on both sides of the character, such as single/double quotes, large brackets and so on.

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.