Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
vim keybindings for tmux
# I'm a Vim user, this makes navigation easier
setw -g mode-keys vi # I especially like being able to search with /,? when in copy-mode
unbind-key j
bind-key j select-pane -D # Similar to 'C-w j' to navigate windows in Vim
unbind-key k
bind-key k select-pane -U
unbind-key h
bind-key h select-pane -L
unbind-key l
bind-key l select-pane -R

This comment has been minimized.

Copy link

@glutaminefree glutaminefree commented May 11, 2016

Adding this lines, making tmux more vim-like on switching between splited windows.

unbind C-b
set -g prefix C-w
bind C-w send-prefix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment