My Vim configurations

Source: Internet
Author: User

There are already manyArticleI will explain how to create Vim into the IDE, so I will not elaborate on a lot of details in this article, just paste my vimrc configuration file and briefly describe the keyboard binding.

My Vim configurations mainly refer to these articles:
Easwy:VI/Vim advanced
Vimer: Build Vim into a real ide1 2 3
Amix: claimed by netizensThe strongest vimrc in history

Among them, vimer's article is short, there are few plug-ins introduced, and there are not many details involved, but its vim skill is quite good. Easwy's article is very detailed. It introduces many practical plug-ins and explains the basic concepts of VIM in detail. It is recommended to read carefully. The configuration file of amix does not use plug-ins. Although it is very long, half of the length is comments and empty lines. We recommend you read it completely, select related settings based on your actual situation.

This configuration is suitable for your own configurations developed by VIM for one and a half years. It does not necessarily suit your taste. Last night, I almost rewritten the entire vimrc and modified some keyboard bindings. Compared with my original keyboard bindings, I mainly gave up the <A-> binding, most of the time I use Vim in gnome-terminal, the Alt key sent by gterm is not an 8-bit code, but an ESC sequence, so <A-x> cannot be used, only ^ [X can be used, which is equivalent to <ESC> X. Therefore, <ESC> is the leading factor for many keyboard bindings. Therefore, to use ESC normally, you need to press twice, after a long time of ideological struggle, I finally gave up using it. I really like the Alt key binding, because it is very close to the thumb and it is really convenient to use. The following are a lot of HMAC bindings. Previously, ALT was used.

My. Vimrc,. Vimrc and. Vim/Package download.

Key Binding:

Use; < Leader >
; EE quick edit ~ /. Vimrc, the source will automatically be saved
; Ww saved files quickly
*/# Search down/up words under the current cursor
C-J/K switches to the next/previous buffer in normal mode. In insert mode, C-J triggers Automatic completion. When the completion menu is opened, select the next/previous option.
C-A/E in insert mode, move the cursor to the beginning/end of the line
; 1; 2; 3; 4; q; W in the insert mode, convert them to: () [] {}{ line feed }''""
; T open/close the taglist window
C-]/f/D/L tag/file name/Dictionary/line completion
; CC; CS; C $; Cu toggle single line comment/"sexiness" comment/comment to the end of the line/cancel comment
; N open/close the nerd_tree window
The F3/F4 quickfix window jumps to the previous/next error.
; CW opens the quickfix window
F12 update tags and csout. Out
; SS; SG; SC; ST; se; SF; Si; SD cscope keyboard binding, for more information about S/G/C/T/E/F/I/D, see notes in vimrc or H CS.
F5/; FF search file, filenametags is required. For more information, see comments in vimrc. For more information, see easwy.
B. Open the buffer List window. In this window, D is used to delete the buffer. Press enter to open the corresponding buffer.

 

 

reprinted please indicate the source: http://www.cnblogs.com/stephenjy/archive/2010/02/04/1663933.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.