Vim Split Screen Function summary

Source: Internet
Author: User

Vim's split-screen function

Summing up, basically are ctrl+w then add a key letter, triggering a function.
(1) Open several files in the shell and split the screen:
vim-on file1 file2 ...
vim-on file1 file2 ...

Large O for Vertical division (vertical), small o for the horizontal split (the default horizontal), the following n means a few screens, in fact, I think not to write, by default, according to the number of files to be divided into several screens.
(2) Open a split screen in Vim:
To create a blank split screen:
: New
Open any file:
: Vsplit (: VSP) filename
: SP (split) filename
Open the current file:
Ctrl+w and S (split)
Ctrl+w and V (vsplit)

(3) Close a split screen:
: Only or Ctrl+w and O cancel other split screen, keep only the current split screen
Ctrl+w and C (Close)
Only one last split screen is available:
Ctrl+w and Q (quit)
(4) Move the cursor, that is, switch the split screen, you can also move the split screen, such as the left split screen to move to the right.
Ctrl+w and W (a variety of switching, only two sub-screen when it is more convenient)
Ctrl+w and H (h) left
Ctrl+w and J (j)
On Ctrl+w and K (k)
Ctrl+w and L (l) right
(5) The last step is to change the split-screen size operation.
Ctrl+w and < Left
Ctrl+w and > right
Ctrl+w and + On
Ctrl+w and-down
Ctrl+w and = Restore equal

Vim Split Screen Function summary

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.