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