- 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
推薦閱讀
- INSTANT OpenCV Starter
- ASP.NET Core 5.0開發入門與實戰
- JavaScript+jQuery網頁特效設計任務驅動教程(第2版)
- Java入門很輕松(微課超值版)
- Python網絡爬蟲從入門到實踐(第2版)
- Java Web程序設計
- Practical Windows Forensics
- 用Flutter極速構建原生應用
- Create React App 2 Quick Start Guide
- Python 3.7從入門到精通(視頻教學版)
- Django 3.0應用開發詳解
- 黑莓(BlackBerry)開發從入門到精通
- C語言編程魔法書:基于C11標準
- HTML5/CSS3/JavaScript技術大全
- Python GUI設計tkinter菜鳥編程(增強版)