記錄下vim的多窗口操作以免忘記。
Multi-windows in vim
split windows in horizontal:
:split/:new/:sp divide windows into two sub-windows
:10split the height of new window will be 10
:split filepath open filepath in new sub-window
ctrl+w+s shortcut for :split
split windows in vertical:
:vsplit
resize the windows:
ctrl+w +/- enlarge/reduce the size of sub-window in vertical
ctrl+w 10+/- specify the number of lines(10) to enlarge/reduce the size of sub-window in vertical
ctrl+w </> enlarge/reduce the size of sub-window in horizontal
ctrl+w 10</> enlarge/reduce the size of sub-window in horizontal