Vim-complex repeats

Source: Internet
Author: User

Vim-complex repeats


Vim can record your operation combinations into registers, and then call this operation combination through the shortcut key, which is very quick. In normal mode, enter:

Q {0-9a-za-z "} → Q starts recording, {0-9a-za-z"} specifies a register.
Q → exit recording.
(Times) @ {0-9a-za-z ". = *} → repeat recording operation group. The number of times the operation group is modified repeatedly.
(Times) @ → repeat the previous @ {0-9a-za-z "} Times.


Example:

In normal mode, enter:

Q1 → recording appears in the lower-left corner of VIM to start recording.
YP → operation group, copy a row and paste it.
Q → the recording is complete, and the recording text disappears.
@ 1 → call the operation group you just recorded, copy the row, and paste it.
@ → Call @ 1.

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.