Skip to content

Emulate Vim's C-w in tmux, making pane navigation really snazzy.

License

Notifications You must be signed in to change notification settings

eraserhd/tmux-ctrlw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tmux-ctrlw

Emulate Vim’s C-w in tmux, making pane navigation really snazzy.

Table 1. Keys
Keys Meaning

@ctrlw_key 0-9

Focus the numbered pane in the current window

@ctrlw_key =

Equalize the pane sizes

@ctrlw_key |

Split pane vertically

@ctrlw_key -

Split pane horizontally

@ctrlw_key h

Focus one pane to the left

@ctrlw_key j

Focus one pane to the down

@ctrlw_key k

Focus one pane to the up

@ctrlw_key l

Focus one pane to the right

@ctrlw_key p

Focus the previously focused pane

@ctrlw_key s 0-9

Swap this pane with the numbered pane

@ctrlw_key s p

Swap this pane with previously focused pane

@ctrlw_key r

Focus the REPL or shell pane (@ctrlw_repl_pane)

@ctrlw_key ,

Repeat last REPL or shell command by sending C-p Enter to @ctrlw_repl_pane without changing focus. An active copy mode will be cancelled first.

@ctrlw_key .

Send @ctrlw_key

@ctrlw_key @ctrlw_key

Send @ctrlw_key

@ctrlw_key unmodified-@ctrlw_key

Send @ctrlw_key. e.g. if @ctrlw_key is set to C-x, then C-x x sends a literal C-x to the focused pane

Configuration

@ctrlw_key defaults to C-w but can be set to any other key.

@ctrlw_repl_pane defaults to {bottom-right} but can be set to any tmux pane identifier.

@ctrlw_active

The user option @ctrlw_active is set to 1 when tmux-ctrlw becomes active, 0 when it is finished. This is useful in formats to highlight pane numbers, for example:

set -g pane-border-format "#[fg=#{?@ctrlw_active,#ff5370,#{?pane_active,#292d3e,#697098}}] #P"

About

Emulate Vim's C-w in tmux, making pane navigation really snazzy.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages