Окно Split Tmux, моделирующее поведение vim nosplitbelow и nosplitright

Вы можете получить их со значениями по умолчанию из установленной системы:

debconf-get-selections --installer

0
03.03.2019, 15:06
1 ответ

Изman tmux:

     split-window [-bdfhvP] [-c start-directory] [-l size | -p percentage] [-t target-pane]
             [shell-command] [-F format]
                   (alias: splitw)
             Create a new pane by splitting target-pane: -h does a horizontal split and -v a
             vertical split; if neither is specified, -v is assumed.  The -l and -p options
             specify the size of the new pane in lines (for vertical split) or in cells (for
             horizontal split), or as a percentage, respectively.  The -b option causes the
             new pane to be created to the left of or above target-pane.  The -f option cre‐
             ates a new pane spanning the full window height (with -h) or full window width
             (with -v), instead of splitting the active pane.  All other options have the
             same meaning as for the new-window command.

Таким образом, включение следующих строк в ~/.tmux.confи их поиск приведет к желаемому поведению. Обратите внимание на опцию -b.

# pane splitting
bind -r v split-window -bh
bind -r b split-window -bv
2
28.01.2020, 02:30

Теги

Похожие вопросы