From ebd0eb4fb4790cbf289a0dace00e37fe866c9bf3 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 29 Nov 2010 19:45:58 +0000 Subject: 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. --- tmux.1 | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'tmux.1') 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 -- cgit