Vim Learning Notes

Source: Internet
Author: User

1, VIM Tutor enter--into the VIM tutorial Study 2, VIM filename return--Into the Vim editor 3, <esc>: q! Enter--Exit the Vim editor to save, then: Wq4, i--Normal mode, inserts text at the cursor position, into the text insertion state. <esc> return to normal mode. Delete Class command5, x--Normal mode, delete the cursor location of the character 6, dw--Normal mode, remove from the cursor to the end of a word, including spaces. 7, de--Normal mode, delete from the cursor to the end of a word, not including spaces. 8, d$--Normal mode, delete from the current cursor to the end of the line. 9. dd--Normal mode, delete the line where the cursor is located. (In fact, the line in the Vim buffer, p can paste it out) 10, 2dd--Normal mode, delete two lines, and so on. Undo Class Command11, u--Normal mode, undo the last command executed. 12, u--Normal mode, restore to the original state of the line. 13, ctrl-r--Normal mode, revoke the previous revocation command. Replace/Change class commands (you can actually do the same with the delete command + insert command)14. Enter R and a character--replace the character where the cursor is located. 15, CW **--change part or all of a word. 16. C $ **--Change the cursor position to the end of the line. 17, CE **--change part or all of a word.  (The above three commands refer to the Delete Class command). The above is the basic addition and deletion of the order, if necessary, will continue to learn other commands. For more tutorials, learn by command Vimtutor. Continued...........

Vim Learning Notes

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.