The repetition of the basic learning of VIM

Source: Internet
Author: User
Tags repetition
Repeat command.:  


This command can repeat the previous operation. For example, you perform a DD operation, and then. It will delete the forward
There is also a single operation between the changes from Insert mode to exit Insert mode. For example, you performed a
I AAA <Esc>
Then you execute. You'll be inserting the AAA character again.



This command can repeat the previous ex command.
For example, you performed a:/AAA operation, and then you edited a line of code BBBB
At this point if you execute @:, you will find that it executes:/aaa command

Repeat Command &


This command can be used to repeat the last: substitute command
When we executed the command: S/AAA/BBB/C
Then we do the other things, and then we execute the & and we execute the S/AAA/BBB/C.

We can use the command if we want to rewind the action



If we want to undo the fallback, we can use

<C-r>


We use F or T to search, by pressing the

; next


We can select the next search result with the cursor

Last

You can return the cursor to the previous search result

The repetition of the basic learning of 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.