-
nvim垂直分屏之后,此时的窗口是均分的,然后打开NvimTree,此时右侧两个分屏窗口大小仍然是一致的,然后再关闭NvimTree,此时左边的窗口大小变成了NvimTree的窗口宽度加上原有分屏窗口宽度,和右边的大小不一样了,这种是哪里的设置有问题吗,找了nvim-tree的配置也没有发现相关说明 |
Beta Was this translation helpful? Give feedback.
Answered by
Jint-lzxy
Oct 3, 2023
Replies: 1 comment 1 reply
-
*'equalalways'* *'ea'* *'noequalalways'* *'noea'*
'equalalways' 'ea' boolean (default on)
global
When on, all the windows are automatically made the same size after
splitting or closing a window. This also happens the moment the
option is switched on. When off, splitting a window will reduce the
size of the current window and leave the other windows the same. When
closing a window the extra lines are given to the window next to it
(depending on 'splitbelow' and 'splitright').
When mixing vertically and horizontally split windows, a minimal size
is computed and some windows may be larger if there is room. The
'eadirection' option tells in which direction the size is affected.
Changing the height and width of a window can be avoided by setting
'winfixheight' and 'winfixwidth', respectively.
If a window size is specified when creating a new window sizes are
currently not equalized (it's complicated, but may be implemented in
the future). |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Jint-lzxy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
:h 'equalalways'
(we havenoequalalways
by default):