Easy-to-use Vim configuration file (more on C + +)

Source: Internet
Author: User

The use of Linux nature to learn a good text editor, I would recommend the use of Vim here, not that it must be better than other editors, for vim, we can find a lot of useful resources through Baidu (Google was the wall, Baidu's English search is simply a mess. Resources such as Emacs are not easy to find). Below, I also give a copy of my personal use of the configuration, including some utility plug-in (installed Vim-airline):

The approximate function is as follows:

1. Press F5 to directly compile and execute C, C + +, Java code and execute shell script, press "F8" to debug C, C + + code

2. Automatically insert header, new C, C + + source file automatically inserted header: including file name, author, contact information, establishment time, etc., can be changed according to requirements

3. Map "Ctrl + A" To select All and copy shortcut keys for easy copying of code

4. Press "F2" to directly eliminate blank lines in the code

5. "F3" can list the current directory file, open the tree-like file directory

6. Support mouse selection, direction key movement

7. Code highlighting, auto indent, display line number, display status line

8. Press "Ctrl + P" to complete the auto-completion

9.[], {}, (), "", "" and so on are automatically complete

10. Other functions can study the. vimrc file in the user directory

GitHub address (with detailed operation): Https://github.com/hqxdodopipi1/Vim_Configuration

Easy-to-use Vim configuration file (more on C + +)

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.