Vim operation skills Phase 2: My Vim plug-ins

Source: Internet
Author: User

Tabbar. Vim
This plug-in provides functions similar to the tabs in ultraedit, and can be switched through alt-<n>,
Installation:
Copy the file to [Your gvim installation directory] \ vimfiles \ plugin!
Download:
Http://www.vim.org/scripts/script.php? Script_id = 1, 1338

Word_complete.vim
In insert mode, the word is automatically supplemented during input. If the completion is correct, you can press the tab key to accept it. Otherwise, you can continue the input or press

CTRL-N and Ctrl-P switch to complete. Note that the completion starts only after three characters are entered.
Installation:
1. copy the file to [Your gvim installation directory] \ vimfiles \ plugin \
2. Activate completion Mode
: Call dowordcomplete ()
3. Cancel completion Mode
: Call endwordcomplete ()
4. Auto-load completion Mode
Add the. vimrc or _ vimrc File
: Autocmd bufenter * Call dowordcomplete ()
Download:
Http://www.vim.org/scripts/script.php? Script_id = 73

C. Vim
This plug-in is powerful and provides many functions that facilitate C/C ++ programming, such as file header templates,CodeSegment.
Just like the first sentence in the help document: C/C ++ IDE for VIM/gvim. Let's take a look at how powerful it works.
Installation:
This is relatively simple, but there are many files:
1. Unzip beicvim.zip to [Your gvim installation directory] \ vimfiles,
Run unzip. (Note that if it is the unzip of window, extract it to the current directory)
2. You can set personal information in. vimrc or _ vimrc. For example:

Let G: c_authorname = 'moonz _ wu'
Let G: c_authorref = 'mn '
Let G: c_email = 'moonz. wu@gmail.com '
Let G: c_company = 'fsky Co. '
3. restart vim and execute the command
: Help [Your gvim installation directory] \ vimfiles \ doc to generate the help document.
after completing these steps, the CVIM plug-in can be used. However, after decompression, you will see two compressed files
c-templates-comm.zipand c-templates?comm.zip, these two areas are alias c-templates=comm.zip with method annotation,
c-templates-comm.zip no, You can unzip one of them and copy. \ plugin \ templates.
you can find a hotkeydeletion file in the decompressed docdoc, which describes all the shortcut keys defined by CVIM.

Crefvim. Vim
C Reference Manual customized for VIM, so that you can easily find out where the syntax or function is unclear.
Installation:
1. Copy the script to your local directory,
UNIX :~ /. Vim/plugin
Windows: [Your gvim installation directory] \ vimfiles \ plugin
2. Copy the Help File (the file under Doc)
UNIX :~ /. Vim/doc
Windows: [Your gvim installation directory] \ vimfiles \ doc
3. Copy the syntax file (the file under syntax)
UNIX :~ /. Vim/after/syntax
Windows: [Your gvim installation directory] \ vimfiles \ After \ syntax

Then start Vim to automatically load the script. Run the following command in VIM:
UNIX
: Helptags ~ /. Vim/doc
Windows
: Helptags [Your gvim installation directory] \ vimfiles \ doc
Well, you can write a atoi () in vim and run the \ Cr command to check the effect.
This is in the crefvim help (<leader >= \)
<Leader> Cr Normal Mode: get help for word under cursor
Memory aid Cr: (c)-(r) eference
<Leader> Cr visual mode: get help for specified ally selected text
Memory aid Cr: (c)-(r) eference
<Leader> cw: Prompt for word crefvim shoshould search
Memory aid cw: (c)-Reference (w) hat
<Leader> CC: Jump to table of contents of the C-Reference Manual
Memory aid CC: (c)-Reference (c) ontents
For more information, see help.
Download:
Http://www.vim.org/scripts/script.php? Script_id = 1, 614

Here is a good introduction to the vim plug-in.Article, I also borrowed a copy of ^_^!
Http://www.pconline.com.cn/pcedu/soft/gj/photo/0609/877033_5.html

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.