官术网_书友最值得收藏!

Resizing windows

Default 50/50 window proportions might not be exactly what you're looking for, and there are some options for changing sizes.

Ctrl + followed by = will equalize the height and width of all open windows. This is really useful when you just resized the Vim window and the height of your windows got all messed up.

The :resize command increases or decreases the height of a current window, while :vertical resize will adjust the width of the window. You can use these as follows:

  • :resize +N will increase the height of a current window by N rows
  • :resize -N will decrease the height of a current window by N rows
  • :vertical resize +N will increase the width of a current window by N columns
  • :vertical resize -N will decrease the width of a current window by N columns
:resize and :vertical resize can be shortened to :res and :vert res. There are also keyboard shortcuts for changing the height and width by one: Ctrl + w,  - and Ctrl + w,  + adjust the height, while Ctrl w,   > and Ctrl + w < adjust the width.

Both commands can also be used to set the height and the width to a specific number of rows or columns:

  • :resize N will set the height of the window to N
  • :vertical resize N will set the width of the window to N
主站蜘蛛池模板: 新乐市| 称多县| 吉水县| 榆中县| 南漳县| 拜城县| 普格县| 环江| 祁东县| 福海县| 云霄县| 简阳市| 双流县| 嵊泗县| 保康县| 宁阳县| 甘洛县| 长沙市| 芦溪县| 杭州市| 蓝田县| 喀喇沁旗| 将乐县| 太原市| 常山县| 汉阴县| 麻阳| 五家渠市| 寻甸| 恭城| 昌江| 黄龙县| 桂阳县| 伊金霍洛旗| 南开区| 宜城市| 芷江| 琼海市| 汉源县| 乌什县| 庆阳市|