1 # Id: vim-keys.conf,v 1.2 2010-09-18 09:36:15 nicm Exp
3 # vim-keys.conf, v1.2 2010/09/12
5 # By Daniel Thau. Public domain.
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
12 # split windows like vim
13 # vim's definition of a horizontal/vertical split is reversed from tmux's
14 bind s split-window -v
15 bind v split-window -h
17 # move around panes with hjkl, as one would in vim after pressing ctrl-w
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
26 bind < resize-pane -L 1
27 bind > resize-pane -R 1
28 bind - resize-pane -D 1
29 bind + resize-pane -U 1
31 # bind : to command-prompt like vim
32 # this is the default in tmux already
35 # vi-style controls for copy mode