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

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
主站蜘蛛池模板: 宕昌县| 秦皇岛市| 都昌县| 麻栗坡县| 康平县| 淮滨县| 来宾市| 鄂州市| 海原县| 自治县| 龙口市| 阿勒泰市| 南安市| 乃东县| 建瓯市| 定安县| 固安县| 双鸭山市| 呼图壁县| 宿迁市| 顺平县| 波密县| 富民县| 八宿县| 宁陕县| 瓮安县| 石家庄市| 南丰县| 财经| 城固县| 彝良县| 望江县| 堆龙德庆县| 启东市| 大理市| 汪清县| 漳平市| 天津市| 华安县| 怀远县| 宣恩县|