Linux VIM Multi-column window and label page

Source: Internet
Author: User

Multi-column window
You can divide the current window horizontally into two columns by using the following command

: New
Create a new column blank window

: Split
Displays the current file in two columns

Similarly, you can use the following command to split the current window vertically into two columns

: vnew
: Vsplit
Press the <ctrl+w> key first, then press the direction key J, K, L, H, you can switch to other columns; Use in the current column: Q command, you can exit the current column, or you can use other commands to make changes to the current column

If you want the current command to take effect in all columns, you can append all at the end of the command

:< Command >all

For example:

: Qall
If you want this command to be enforced, then! At the bottom of the command

:< Command >all!
For example:

: qall! Force exit All Bar window
Label page
Vim in the version after 7, began to support the function of the tab page

: Tabnew Create a new label
: Tabnext Go to next tab
: Tabprevious go to previous label
In most cases, you can switch with the mouse click tab.

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.