Skip to content

Instantly share code, notes, and snippets.

@logankoester
Created July 13, 2013 09:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save logankoester/5990195 to your computer and use it in GitHub Desktop.
Save logankoester/5990195 to your computer and use it in GitHub Desktop.
# This configuration should feel familiar to screen & vi users.
# split windows like vim
# vim's definition of a horizontal/vertical split is reversed from tmux's
bind s split-window -v
bind v split-window -h
# move around panes with hjkl, as one would in vim after pressing ctrl-w
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# resize panes like vim
# Change integer to preferred resize step
bind < resize-pane -L 1
bind > resize-pane -R 1
bind - resize-pane -D 1
bind + resize-pane -U 1
# vi-style controls for copy mode
setw -g mode-keys vi
# Set the prefix to ^A.
unbind C-b
set -g prefix ^A
bind a send-prefix
# New window
unbind ^C
bind ^C new-window
unbind c
bind c new-window
# Detach
unbind ^D
bind ^D detach
# displays *
unbind *
bind * list-clients
# Next window
unbind ^@
unbind ^N
unbind n
bind n next-window
# Previous window
unbind ^H
unbind ^P
unbind p
bind p previous-window
# Rename window
unbind A
bind A command-prompt "rename-window %%"
# Toggle last window
unbind ^A
bind ^A last-window
# windows ^W w
unbind ^W
bind ^W list-windows
unbind w
bind w list-windows
# Kill window
unbind K
bind K confirm-before "kill-window"
# Refresh
unbind ^L
bind r refresh-client
# Choose window
unbind '"'
bind '"' choose-window
# :kB: focus up
unbind Tab
bind Tab select-pane -t:.+
unbind BTab
bind BTab select-pane -t:.-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment