I use EDITOR as well as VISUAL environment variables:
EDITOR=ed
VISUAL=vi
Both have their uses and mean different things. Most command line tools use VISUAL and only fall back to EDITOR if the former is either empty or not set, in the following order: VISUAL -> EDITOR -> vi, i.e.: ${VISUAL:-${EDITOR:-vi}}.
It would be great if a visual editor, i.e vi(1), could be used while editing entries using rbw edit ...lastpass-cli had the same issue a while back ;^)
Hello,
I use
EDITOR
as well asVISUAL
environment variables:Both have their uses and mean different things. Most command line tools use
VISUAL
and only fall back toEDITOR
if the former is either empty or not set, in the following order:VISUAL
->EDITOR
->vi
, i.e.:${VISUAL:-${EDITOR:-vi}}
.It would be great if a visual editor, i.e
vi(1)
, could be used while editing entries usingrbw edit ...
lastpass-cli
had the same issue a while back ;^)