diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2010-11-29 19:45:58 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2010-11-29 19:45:58 +0000 |
commit | ebd0eb4fb4790cbf289a0dace00e37fe866c9bf3 (patch) | |
tree | 548da0b2907ef9ccf4dfa9b75cf67464b1686082 /tmux.1 | |
parent | ef9b2eb566fc090b773c79e406dd43d0006a3217 (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.1 | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -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 |