[Vim] Undo and redo

Source: Internet
Author: User
Stage 1: U c-r [secondary memory: Undo redo] Hey, Tom, my sister deleted important things. What should I do? Solve the problem by u in normal mode! Not enough? 3u 6u 10000u thank you ~ White, u pressed a few more, undo too much ~ Then c-r will be back! Stage 1: U is a capital u with profound skill! Here is the description of the vim document (this command is not easy for me, so I won't say much here, so I cannot mislead everyone): For Undo/Redo, the "U" command is the same as other commands. So "U" can undo a "U" command, 'ctrl-R' can also redo to undo the "U" command. When the three commands "u", "U", and 'ctrl-R' are used together, you will notice that the "U" command is determined to be restored to the status before the previous "U" command. This may confuse you. Try more and you will get used to it. The "U" command always marks the buffer as changed. This is true even if it retries the modified buffer to a State that has not changed. Therefore, the buffer zone can be correctly restored to the unchanged flag only by using the "U" command.

Unless stated, the article of the White Rabbit software application (www.alittlerabbit.com) is original. repost the article in the form of a link to indicate the address of this Article

Address: http://www.alittlerabbit.com/sitecontent/vim%E4%B9%8B%E6%92%A4%E9%94%80%E4%B8%8E%E9%87%8D%E5%81%9A

 

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.