- 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
推薦閱讀
- Vue 3移動Web開發與性能調優實戰
- Boost程序庫完全開發指南:深入C++”準”標準庫(第5版)
- 嵌入式軟件系統測試:基于形式化方法的自動化測試解決方案
- Apache Oozie Essentials
- Go語言高效編程:原理、可觀測性與優化
- Designing Hyper-V Solutions
- Python編程實戰
- iOS開發實戰:從入門到上架App Store(第2版) (移動開發叢書)
- 一塊面包板玩轉Arduino編程
- 智能手機APP UI設計與應用任務教程
- 軟件項目管理實用教程
- PHP與MySQL權威指南
- Java RESTful Web Service實戰
- FusionCharts Beginner’s Guide:The Official Guide for FusionCharts Suite
- 量子計算機編程:從入門到實踐