Vim (window resizing): how easy is it to make windows equally tall for one column?

I have a window with a vertical split, and the window is further horizontally split in each column. I want the height of the windows inside one column to be the same, but I do not want to change the height inside the other (say, one window in the other column is set to the maximum possible, for example, using CTRL-W _, and I do not want to change it). What is the easiest way to do this?

+4
source share
2 answers

If the option is equalalwaysenabled (by default), closing a split resizes the remaining partitions to equal. So just create a new split, and then close it.

:new | q

(, Leader + e q) :

nnoremap <Leader>eq :new \| :q<cr>
+4

, , -

:set mouse+=a

.


, , . . :resize #, # (set lines -2)/2, 2 cmdheight 1 statusline. "cmdhights statusline". .

@Ondrej , vim

+2

Source: https://habr.com/ru/post/1683300/


All Articles