Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
68 lines (54 sloc) 1.95 KB
# $Id: vim-keys.conf,v 1.1 2010/01/17 16:24:09 nicm Exp $
#
# vim-keys.conf, v1.0 2010/01/15
#
# By Daniel Thau. Public domain.
#
# This configuration file binds many vi- and vim-like bindings to the
# appropriate tmux key bindings. Note that for many key bindings there is no
# tmux analogue.
# split windows like vim
# vim's definition of a horizontal/vertical split is reversed from tmux's
bind s split-window -v -c "#{pane_current_path}"
bind v split-window -h -c "#{pane_current_path}"
# move around panes with j and k, a bit like vim
# as of tmux 1.1, there is no way to move based on pane position (ie, no way to
# move the pane to the right)
bind j select-pane -D
bind k select-pane -U
bind h select-pane -L
bind l select-pane -R
# Make swapping the way vim swaps panes
#bind J select-pane -D \; swap-pane -U
#bind K select-pane -U \; swap-pane -U
#bind H select-pane -L \; swap-pane -U
#bind L select-pane -R \; swap-pane -U
# Make the current pane the only visible
bind o break-pane
# resize panes like vim
# feel free to change the "1" to however many lines you want to resize by, only
# one at a time can be slow
bind -r < resize-pane -L 1
bind -r > resize-pane -R 1
bind -r - resize-pane -D 1
bind -r + resize-pane -U 1
# bind : to command-prompt like vim
# this is the default in tmux already
bind : command-prompt
# change predefined layouts like awesome
bind Enter next-layout
# Reload the source file
bind R source-file ~/.tmux.conf \; display-message "source-file done"
# vi-style controls for copy mode
setw -g mode-keys vi
# allow input of one window in all others
# this is very useful fo ssh-clusters
bind S confirm-before -p "synchronize panes? (y/n)" 'set-window-option synchronize-panes'
# Mausunterstuetzung einschalten
set-option -g mouse on
# Neue Fenster nicht als login-shell starten
set-option -g default-shell /bin/bash
# set-window-option automatic-rename on
# set-option -g set-titels on
# better colors
set -g default-terminal "screen-256color"