在 Vim 中,与
C-W =
Run Code Online (Sandbox Code Playgroud)
窗户会自动调整到相同的高度。
在 tmux 中,与
:resize-pane -U 10
Run Code Online (Sandbox Code Playgroud)
我可以将 tmux 窗格的高度增加 10。
如何将窗格自动调整到相同的高度?
spe*_*akr 77
我建议使用五个 tmux 预设之一调整多个窗格的大小:
C-b M-1 # vertical split, all panes same width
C-b M-2 # horizontal split, all panes same height
C-b M-3 # horizontal split, main pane on top,
other panes on bottom, vertically split, all same width
C-b M-4 # vertical split, main pane left,
other panes right, horizontally split, all same height
C-b M-5 # tile, new panes on bottom, same height before same width
Run Code Online (Sandbox Code Playgroud)
M表示元键,通常绑定到ALT.
有关更多信息,请参阅 tmux 联机帮助页。