1# Id: vim-keys.conf,v 1.2 2010-09-18 09:36:15 nicm Exp
2#
3# vim-keys.conf, v1.2 2010/09/12
4#
5# By Daniel Thau.  Public domain.
6#
7# This configuration file binds many vi- and vim-like bindings to the
8# appropriate tmux key bindings.  Note that for many key bindings there is no
9# tmux analogue.  This is intended for tmux 1.3, which handles pane selection
10# differently from the previous versions
11
12# split windows like vim
13# vim's definition of a horizontal/vertical split is reversed from tmux's
14bind s split-window -v
15bind v split-window -h
16
17# move around panes with hjkl, as one would in vim after pressing ctrl-w
18bind h select-pane -L
19bind j select-pane -D
20bind k select-pane -U
21bind l select-pane -R
22
23# resize panes like vim
24# feel free to change the "1" to however many lines you want to resize by, only
25# one at a time can be slow
26bind < resize-pane -L 1
27bind > resize-pane -R 1
28bind - resize-pane -D 1
29bind + resize-pane -U 1
30
31# bind : to command-prompt like vim
32# this is the default in tmux already
33bind : command-prompt
34
35# vi-style controls for copy mode
36setw -g mode-keys vi
37