Vim split screen related

Source: Internet
Author: User

Horizontal cutting:
: Split
: Split xxx (file name to open)
: New (creates a file in a fresh window)
<CTRL+W> K: Jumps to the upper window (if uppercase K, the current window is moved 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 file in new window)
: Only cancel split screen
<CTRL+W> h: Jumps to the left window (if the upper case is H, the current window is moved to the left)
<CTRL+W> L: Jump to the right window (similar to the above)
<CTRL+W> W: Jump between windows
<CTRL+W> +: Enlarge window (or in current window position, Input command: res +9)
<CTRL+W>-: Shrinking window
Under a window, open 3 files.
First open a VIM file name (remember it must be VIM!). )
Then enter in the command input state of VI
: The path and file name of another SP file
So you can open 3 files in one window.
You can use CTRL + two times to press W
Switch between 3 files

Vim split screen related

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.