Skip to content

Instantly share code, notes, and snippets.

@Reder
Created April 28, 2013 16:50
Show Gist options
  • Save Reder/5477476 to your computer and use it in GitHub Desktop.
Save Reder/5477476 to your computer and use it in GitHub Desktop.
tmux conf.
# settings from: http://michaelalynmiller.com/blog/2013/02/27/vim-tmux-clojure/
# ##############################################################
# Global settings.
#
# Switch the prefix to Ctrl-a since Ctrl-b interferes with Vim.
set -g prefix C-a
unbind C-b
# Change the default input delay in order to improve Vim
# performance.
set -sg escape-time 1
# Number windows and panes starting at 1 so that we can jump to
# them easier.
set -g base-index 1
set -g pane-base-index 1
# vi mode.
set -g mode-keys vi
set -g status-keys vi
# 256-color mode.
set -g default-terminal "screen-256color"
# ##############################################################
# Key bindings.
#
# Reload .tmux.conf with "r".
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Split windows with a more visual set of characters.
bind | split-window -h
bind - split-window -v
# Select panes with vi-style movement commands.
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Resize panes with vi-style movement commands.
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment