If I have a vim / nvim session running and I resize the terminal then it messes up the layout and vim continues to act as if it was x columns wide.
Is there a command I can run for vim to refresh the layout and rerender with the updated column width.
2条答案
按热度按时间vuktfyat1#
您可以按Ctrl-W=,以根据新端子大小重新计算分割。
请参阅
:help ctrl-w
:CTRL-W =
个使所有窗口的高度和宽度(几乎)相等,但对当前窗口使用“winheight”和“winwidth”。设置了“winfixheight”的窗口保持其高度,而设置了“winfixwidth”的窗口保持其宽度。
4szc88ey2#
看起来您可能搞砸了终端屏幕大小。请尝试
增加屏幕大小和
缩小屏幕尺寸