Paired writing during use of VIM

Source: Internet
Author: User

I think Vim is quite good. I don't need to use the arrow keys. Basically, I don't need to move my hands. I just need to move my fingers.

1, but one thing is thatProgramUsually, it is a pair write () or {}. After the pair is written, return to the center of the brackets. The method I use is to first ESC, then I, or add a few more H and l keys. at first, I thought it was complicated, but I didn't know any other methods. if anyone knows a better method, I hope I can tell you.

2. In command mode, a starts writing at the next position of the current character. A starts writing at the next position of the character at the end of the current line.

3. In command mode, DD deletes the current line, and X deletes the current character.

4. combination of numbers and commands, to the end of the file g, to the nth line of the file ng.

 

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.