summaryrefslogtreecommitdiffstats
path: root/tmux.1
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2010-11-29 19:45:58 +0000
committerNicholas Marriott <nicm@openbsd.org>2010-11-29 19:45:58 +0000
commitebd0eb4fb4790cbf289a0dace00e37fe866c9bf3 (patch)
tree548da0b2907ef9ccf4dfa9b75cf67464b1686082 /tmux.1
parentef9b2eb566fc090b773c79e406dd43d0006a3217 (diff)
If VISUAL or EDITOR contains "vi", configure mode-keys and status-keys
to vi. Based on a diff from martynas@, previously requested by a couple of other people.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.116
1 files changed, 14 insertions, 2 deletions
diff --git a/tmux.1 b/tmux.1
index f738f166..de5144a5 100644
--- a/tmux.1
+++ b/tmux.1
@@ -1852,7 +1852,12 @@ or right justified.
.Xc
Use vi or emacs-style
key bindings in the status line, for example at the command prompt.
-Defaults to emacs.
+The default is emacs, unless the
+.Ev VISUAL
+or
+.Ev EDITOR
+environment variables are set and contain the string
+.Ql vi .
.It Ic status-left Ar string
Display
.Ar string
@@ -2140,7 +2145,14 @@ Set window modes foreground colour.
.Op Ic vi | emacs
.Xc
Use vi or emacs-style key bindings in copy and choice modes.
-Key bindings default to emacs.
+As with the
+.Ic status-keys
+option, the default is emacs, unless
+.Ev VISUAL
+or
+.Ev EDITOR
+contains
+.Ql vi .
.Pp
.It Xo Ic mode-mouse
.Op Ic on | off