Git tips: How to fill out comments in vim

Source: Internet
Author: User
Tags windows visual

When using the GIT command-line tool, you often accidentally enter the Vim interface, for example, git commit does not fill in any descriptive information. For users who are accustomed to the Windows visual interface, they may suddenly feel overwhelmed by a short press on the keyboard. Here's a quick introduction to the Vim interface:

1. Exit window

After entering the VIM, the keyboard does not have a oh according to your expected results, this is the most you want to quit the operation, you can refer to the following ways:

1) Key ESC, if not valid, press two times consecutively

2) When the bottom hint line appears blank, enter the colon ":"

3) Re-enter the letter "Q", enter (input Wq, exit for Save)

2. Inserting text messages

Under command input mode, enter the letter "I", then Vim enters the insert mode, you can enter your own content. Such as:

(Microsoft ALM MVP Zhang Hongjun Http://www.cnblogs.com/danzhang)

--

Git tips: How to fill out comments in vim

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.