A good Vim configuration (you can use the mouse to operate Vim with a diagram)

Source: Internet
Author: User

 

The above is, all can be listed in my resources, and the instructions for use are attached below:

 

 

Usage:
1. Put. vimrc in the vimrc package in the/home or/root directory (depending on your identity ).
2. Put the files in plugin and Doc in the other two zip packages into Vim/DOC and VIM/plugin respectively.
The specific contents depend on your system and VIM version. You can use the locate command to find them. Mine is
/Usr/share/Vim/vim72/DOC and/usr/share/Vim/vim72/plug.
3. There are several shortcut keys in. vimrc:
Map <F1>: wqall <CR> // <F1> Save all and exit. If these keys conflict, go to. vimrc.
Map <F2>: nerdtreetoggle <CR> // <F2> open/close the directory tree border (left)
Map <F3>: nerdtreemirror <CR> // <F3> directory tree image
Map <F4>: Wall <CR> // <F4> Save all
Map <F5>: tlisttoggle <CR> // <F5> tlist enabled/disabled, border (right)
.
.
.
Map <F8> :! Ctags-R. <CR> // <F8> the current directory recursively creates CTAG
4. After the configuration is complete, the powerful Vim will be more convenient to use.
Insert and press <tab> auto-complete, easy to search, and operable with the mouse, and add matching brackets automatically,CodeFold .. more surprises will be known after the experience

 

To add auto-matching brackets, add these sentences in. vimrc. (Note that posting from the window may have ^ m after each row is/R, which must be removed)
Set Sm
Inoremap () <left>
Inoremap {{}< left>
Inoremap [[] <left>

 

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.