Created
May 22, 2013 17:42
-
-
Save logankoester/5629422 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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