help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] How the editor is determined when 'v' is type in bash (s


From: Chet Ramey
Subject: Re: [Help-bash] How the editor is determined when 'v' is type in bash (set -o vi)?
Date: Sat, 28 Dec 2013 17:26:23 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

On 12/28/13, 4:15 PM, Peng Yu wrote:
> Hi,
> 
> In some machine, it opens vim when 'v' is typed. In some machine, nano
> is used. VISUAL and EDITOR are not set in these machines. Does anybody
> know what determines which editor to use? Thanks.

It depends on the editing mode.

#define VI_EDIT_COMMAND         "fc -e \"${VISUAL:-${EDITOR:-vi}}\""
#define EMACS_EDIT_COMMAND      "fc -e \"${VISUAL:-${EDITOR:-emacs}}\""
#define POSIX_VI_EDIT_COMMAND   "fc -e vi"



-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]