Vim split-screen display

Source: Internet
Author: User

Horizontal cutting:
: Split
: Split XXX (file name to open)
: New (create a file in the new window)
<Ctrl + W> K: Jump to the window above (if it is capital K, the current window is raised to the top)
<Ctrl + W> J: Jump to the following window (similar to the above)
Vertical cutting:
: Vsplit
: Vsplit XXX (file name to open)
: Vnew (create a file in the new window)
: Only cancelSplit screen
<Ctrl + W> H: Jump to the Left window (if it is uppercase H, it is to adjust the current window to the left)
<Ctrl + W> L: the window to the right (similar to the top)
<Ctrl + W> W: jump between windows
<Ctrl + W> +: Expand the window (or at the current window position, enter the command: res + 9)
<Ctrl + W>-: Zoom out the window
Open three files in a window.
Open a file named Vim first (remember it must be vim !)
ThenVIIn the command input status.
: SP path and file name of another file
In this way, three files can be opened in a window.
Press Ctrl + twice
Switch among the three files

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.