Vim-git for window Default editor

Source: Internet
Author: User
Tags linux text editor

Vim is actually a Linux text editor, so vi+ file name, is actually into the VI program. VI has two modes, edit mode and command mode

in command mode, We can directly press I, this time will switch to the editing mode, for example, there is an insert below, you can directly modify the text content.

in edit mode, press ESC You can switch to command mode.

Here are a few common commands, is in command mode, enter: + command using

1,q exit Edit, if the text content has been modified, The error will be

2,q! Force exit Edit, if text content has been modified, This modification is discarded

3,x exit Edit and save

Vim-git for window Default editor

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.