- Mastering Vim
- Ruslan Osipov
- 247字
- 2021-06-10 18:51:28
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 + w 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
推薦閱讀
- Building Modern Web Applications Using Angular
- MATLAB實用教程
- .NET 3.5編程
- Mastering ROS for Robotics Programming
- jQuery炫酷應用實例集錦
- 零基礎學C語言第2版
- Spring技術內幕:深入解析Spring架構與設計原理(第2版)
- Training Systems Using Python Statistical Modeling
- Python程序設計教程
- Microsoft Exchange Server 2016 PowerShell Cookbook(Fourth Edition)
- Groovy 2 Cookbook
- 算法超簡單:趣味游戲帶你輕松入門與實踐
- Android應用程序設計
- Java程序設計及應用開發
- 算法訓練營:海量圖解+競賽刷題(入門篇)