Vim split screen function

Source: Internet
Author: User
This article describes how to use the Vim split screen function. Split screen to start Vim using uppercase O parameters for vertical split screen. Vim-Onfile1file2... uses lower case o parameters for horizontal split. Vim-onfile1file2... note: n is a number, indicating the split into... Vim split screen function this article mainly teach you how to use Vim split screen function. Split screen to start Vim using uppercase O parameters for vertical split screen. Vim-On file1 file2... use the lower-case o parameter to split the screen horizontally. Vim-on file1 file2... note: n is a number, which indicates several screens. Close the split screen to close the current window. Ctrl + W c close the current window. if only the last one is left, exit Vim. Ctrl + W q split up and down the currently opened files. Ctrl + W s split up and down, and open a new file. : Sp filename: splits open files left and right. Press Ctrl + W v to separate and open a new file. : Vsp filename: the cursor key in the move cursor Vi is h, j, k, l. to switch between screens, just press Ctrl + W to move the cursor to the screen on the right. Ctrl + W l move the cursor to the screen on the left. Ctrl + W h move the cursor to the screen above. Ctrl + W k move the cursor to the screen below. Ctrl + W j move the cursor to the next screen .. Ctrl + W w mobile split screen function still uses the Vim optical key, only in uppercase. Of course, if your split screen is messy and complicated, this function may have some very strange symptoms. Move to the right. Ctrl + w l move Ctrl + w h move Ctrl + w k move Ctrl + w j move down the screen size below are some operations to change the size, mainly the height, you can use Ctrl + W for width <Or> But this may only be supported by the latest version. Make all screens have the same height. Ctrl + W = increase the height. Ctrl + W + reduce the height. Ctrl + W-

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.