Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to decrease my left window by five characters in vim?

Tags:

vim

I have vsplit two windows and make them same width. Now I want to decrease the left window by five characters and increase the right window by five characters,when the cursor is in the left window, how to input command in normal mode or ex mode?

like image 784
showkey Avatar asked Mar 18 '26 16:03

showkey


1 Answers

In general Ctrl-W commands do it.

Specifically here N Ctrl-W < shrinks the current window by one (or N if specified) column and N Ctrl-W > extends by one column (or N if specified).

Type :help window-resize for all related commands.

like image 148
Zbynek Vyskovsky - kvr000 Avatar answered Mar 20 '26 05:03

Zbynek Vyskovsky - kvr000



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!