mirror of
https://github.com/tmux/tmux.git
synced 2024-12-25 02:48:47 +00:00
36 lines
1016 B
Plaintext
36 lines
1016 B
Plaintext
# $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
|
|
bind v split-window -h
|
|
|
|
# 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 down-pane
|
|
bind k up-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 < 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
|