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

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
主站蜘蛛池模板: 新竹市| 阳城县| 灌阳县| 雷波县| 双鸭山市| 贞丰县| 陵水| 长宁区| 五莲县| 山东省| 合山市| 汉沽区| 海原县| 兴隆县| 吉水县| 鹤庆县| 炉霍县| 江陵县| 大连市| 洪泽县| 巴马| 镇康县| 怀远县| 大名县| 彭山县| 崇仁县| 长子县| 定陶县| 岫岩| 武邑县| 合山市| 东阿县| 山西省| 双牌县| 轮台县| 元江| 乌拉特后旗| 大城县| 平邑县| 武定县| 砀山县|