Vim Bulk Indent

Source: Internet
Author: User

Method One1, press CTRL + SHIF +; Enter the bottom row mode

2. Write the line number that you want to indent in bulk, follow the format: "line number 1, line number 2>" Input command, if you want to indent a tab value from 4 to 11 lines in bulk, the command is "4,11>", enter

3, enter after you can see 4 to 11 lines are all indented a tab value, the same, if you want to shrink back a tab value, then use the command "line number 1, line number 2<" can

Method Two1. First move the cursor to the first line (or the last line) of the code block that you want to indent, and press SHIFT + V (Ctrl + V) to enter the visual mode. Select the block of code you want to move with ↑↓←→

2. After you have selected, press SHIFT +, to indent a tab value forward, press SHIFT + <, or retract a tab value

Vim Bulk Indent

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.