Tmux plugin for controlling panes. You can install this plugin with TPM.
# .tmux.conf
set -g @plugin 'simnalamburt/tmux-pane'
This plugin was forked from tmux-pain-control and customized for my use cases.
Notice most of the bindings emulate vim cursor movements.
Resizing panes
prefix + h
resize current pane 5 cells to the leftprefix + j
resize 5 cells in the down directionprefix + k
resize 5 cells in the up directionprefix + l
resize 5 cells to the right
These mappings are repeatable
.
The amount of cells to resize can be configured with @pane_resize
option. See
configuration section for the details.
Splitting panes
prefix + \
split current pane horizontallyprefix + -
split current pane vertically
Newly created pane always has the same path as the original pane.
Swapping windows
prefix + <
- moves current window one position to the leftprefix + >
- moves current window one position to the right
You can set @resize_vertical
and @resize_horizontal
Tmux option to choose number of resize cells for the
resize bindings.
set-option -g @resize_vertical "5" # Default: "3"
set-option -g @resize_horizontal "15" # Default: "10"