Common commands under VIM (2)

Source: Internet
Author: User
Tags save file
VIM commands are divided into two kinds, one is vim own, the other is ex, the ex command needs to enter a colon, the last return to execute, compared to the VIM command, the scope of the ex command more extensive, but also more powerful, the following list some of the commonly used ex command command     function: W      Save file: Q     exit: X     Save and exit, quite with: wq:e     Edit file: E!      Undo changes to restore the original content when the file was just opened:0      indicates line No. 0:.     Represents the current row: $     indicates the last line %      represents the current file name: @ Repeats the last     executed ex command: Shell     enters shell:normal     executes normal mode commands within a specified range : M (: Move)     Cut command: T (: copy)     copy command: 6t.     Copy line 6th below the current line: T6     Copy the current row below line 6th: T.     Creates a copy of the current row, equivalent to YYP, but does not use a register, so the current contents of the register are not overwritten: t$     Copy the current line to the end of the file: '<,> ' t0     copy the highlighted row to the beginning of the file

It's like 11 things.

Common commands under VIM (2)

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.