mirror of
https://github.com/tmux/tmux.git
synced 2024-11-16 09:28:51 +00:00
Add vim-style key bindings file from Daniel Thau.
This commit is contained in:
parent
796ae34f2f
commit
38ee1e66aa
35
examples/vim-keys.conf
Normal file
35
examples/vim-keys.conf
Normal file
@ -0,0 +1,35 @@
|
||||
# $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
|
Loading…
Reference in New Issue
Block a user