Linux terminal VI display multiple files at the same time split-screen operation and switching operations

Source: Internet
Author: User

Previously saw that side of the screen operation feel very high-end, and now a preliminary collation.

This is not the code implementation of the split screen, completely Linux operation command

One, open and display the file

1. Open

This needless to say, is VI xx.c, or VI xx1.c xx2.c

If VI is already open, enter in the bottom line mode: Open xx.c

2. Display

Terminal bottom Row Mode input

: Split Vertical split screen

: Vsplit Horizontal split screen

(Do not enter a split-screen command more than one split-screen window)

Second, the switch between the Windows

Here are a few ways to switch:

1. Bottom-line mode

: Bn Next file

: BP previous file

(The b here should be a jump)

2. Shortcut key method

ctrl+w+ Arrow key switch up and down the left and right window (I can only use left and right here)

CTRL+W+H/J/K/L toggle up and down Windows (left/bottom/top/right in order)

CTRL+WW switch the screen in turn

Note: At present, I summed up so much, some of the article said ctrl+6,ctrl+b,ctrl+% .... I can not use after the practice, write not full please do not hesitate to add.

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.