Skip to content

Instantly share code, notes, and snippets.

@gazoombo
Created January 27, 2012 18:46
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gazoombo/1690258 to your computer and use it in GitHub Desktop.
Save gazoombo/1690258 to your computer and use it in GitHub Desktop.
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
@glutaminefree
Copy link

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