Vim window operation

Source: Internet
Author: User
Tags switches
Open-Window horizontal cutting (horizontal arrangement) window

: new+ window name (file name after saving) window name is optional

: split+ window name, can also be abbreviated as: sp+ window name the current file is displayed in two windows, the contents are identical, and remain in sync.

Longitudinal cut (vertically arranged) window

: vsplit+ window name, can also be abbreviated as: vsp+ window name

Cutting windows

ctrl-w w Switches the window back, and the window operation starts with Ctrl-w.

CTRL-W p switches back to the previous window, noting that the operation is not corresponding to W.

Ctrl-w h Switch to the left window, if any, the same as

Ctrl-w l switch to the right window

Ctrl-w J Switch to the following window

CTRL-W k switches to the upper window, which corresponds to the keys of the cursor operation for the 4 operations.

Other

ctrl-w + Enlarge window, if still possible, because is average enlarged, does not shrink other windows at the same time

Ctrl-w-shrinks the window, reducing the window size by one row.

Ctrl-w number of rows + expanded window specified. Note Unlike ctrl-w +, this command expands the current window only.

Ctrl-w-reduces the number of rows specified by the window.

Reference articles

http://blog.csdn.net/jeffry_cheng/article/details/6167378

Original link Address: http://pangyi.github.io/blog/20150118/vimchuang-kou-cao-zuo/
Written by pangyi?posted at Http://pangyi.github.io

Vim window operation

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.