Split screen (finishing) in VIM)

Source: Internet
Author: User

1. Split screen to start Vim
1. Use uppercase o parameters for Vertical Split screen
Vim-on file1 file2...
2. Use lower-case o to split the screen horizontally
Vim-on file1 file2...
Note: N indicates a number, which indicates several screens.

2. Disable Split screen
1. Close the current window
CTRL + W C
2. Close the current window. If only the last one is left, the Vim
CTRL + w Q
3. Split screen
1. Split up and down the currently opened files
CTRL + W S
2. Split up and down and open a new file
: SP filename
3. Split the currently opened files left and right
CTRL + W v
4. Split the left and right sides and open a new file.
: VSP filename
4. move the cursor to hjkl. to switch between screens, just press Ctrl + W.
1. move the cursor to the right
CTRL + W L
2. move the cursor to the screen on the left
CTRL + W H
3. move the cursor to the screen above
CTRL + W K
4. move the cursor to the screen below
CTRL + w j
5. move the cursor to the next Screen
CTRL + W
5. Below are some operations to change the size, mainly the height. You can use Ctrl + W <or> for the width, but this may be supported by the latest version.
1. Make all the screens have the same height.
CTRL + W =
2. Increase the height.
CTRL + W +
3. Reduce the height.
CTRL + w-
4. Mobile split screen
6. This function still uses the vim optical key, which is only in uppercase. Of course, if your split screen is messy and complicated, this function may have some very strange symptoms.
1. Move to the right.
CTRL + W L
2. Move to the left
CTRL + W H
3. Move up
CTRL + W K
4. Move down
CTRL + w j

Note: you are welcome to leave a message to add

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.