2010-09-18 11:36:15 +02:00
|
|
|
# $Id: vim-keys.conf,v 1.2 2010-09-18 09:36:15 nicm Exp $
|
2010-01-17 17:24:09 +01:00
|
|
|
#
|
2010-09-18 11:36:15 +02:00
|
|
|
# vim-keys.conf, v1.2 2010/09/12
|
2010-01-17 17:24:09 +01:00
|
|
|
#
|
|
|
|
# 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
|
2010-09-18 11:36:15 +02:00
|
|
|
# tmux analogue. This is intended for tmux 1.3, which handles pane selection
|
|
|
|
# differently from the previous versions
|
2010-01-17 17:24:09 +01:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2010-09-18 11:36:15 +02:00
|
|
|
# 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
|
2010-01-17 17:24:09 +01:00
|
|
|
|
|
|
|
# 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 < resize-pane -L 1
|
|
|
|
bind > resize-pane -R 1
|
|
|
|
bind - resize-pane -D 1
|
|
|
|
bind + resize-pane -U 1
|
|
|
|
|
|
|
|
# bind : to command-prompt like vim
|
|
|
|
# this is the default in tmux already
|
|
|
|
bind : command-prompt
|
|
|
|
|
|
|
|
# vi-style controls for copy mode
|
|
|
|
setw -g mode-keys vi
|