Instantly share code, notes, and snippets.

Embed
What would you like to do?
tmux VIM-like navigation
set -g prefix C-z # Use Ctrl-Z as prefix
bind-key C-z send-prefix # Ctrl-Z+Ctrl-Z sends Ctrl-Z (SIGTSTP)
bind r source-file ~/.tmux.conf # Reload the config file using Ctrl-Z+R
bind v split-window -v # create a new 50% vertical split (one split on top of the other) using Ctrl-Z+v
bind h split-window -h # create a new 50% horizontal split (one split next to the other) using Ctrl-Z+h
bind -n M-s split-window -p 25 # create a small vertical split (under the current split) that's 25% of the size using Ctrl-z+Meta-s
bind -n M-h prev # cycle counterclockwise through windows using Meta-h
bind -n M-l next # cycle clockwise through windows using Meta-l
bind -n M-j select-pane -t :.- # cycle counterclockwise through splits in current window using Meta-j
bind -n M-k select-pane -t :.+ # cycle clockwise through splits in current window using Meta-k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment