13 # vim's definition of a horizontal/vertical split is reversed from tmux's |
13 # vim's definition of a horizontal/vertical split is reversed from tmux's |
14 bind s split-window -v |
14 bind s split-window -v |
15 bind v split-window -h |
15 bind v split-window -h |
16 |
16 |
17 # move around panes with hjkl, as one would in vim after pressing ctrl-w |
17 # move around panes with hjkl, as one would in vim after pressing ctrl-w |
18 bind h select-pane -L |
18 bind -r h select-pane -L |
19 bind j select-pane -D |
19 bind -r j select-pane -D |
20 bind k select-pane -U |
20 bind -r k select-pane -U |
21 bind l select-pane -R |
21 bind -r l select-pane -R |
22 |
22 |
23 # resize panes like vim |
23 # resize panes like vim |
24 # feel free to change the "1" to however many lines you want to resize by, only |
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 |
25 # one at a time can be slow |
26 bind < resize-pane -L 3 |
26 bind -r < resize-pane -L 3 |
27 bind > resize-pane -R 3 |
27 bind -r > resize-pane -R 3 |
28 bind - resize-pane -D 3 |
28 bind -r - resize-pane -D 3 |
29 bind + resize-pane -U 3 |
29 bind -r + resize-pane -U 3 |
30 |
30 |
31 # bind : to command-prompt like vim |
31 # bind : to command-prompt like vim |
32 # this is the default in tmux already |
32 # this is the default in tmux already |
33 bind : command-prompt |
33 bind : command-prompt |
34 |
34 |