:0 I can start using EDITOR instead of VISUAL and start removing: $ set -o vi; in my .profiles
On Fri, May 31, 2024 at 3:17 PM Nathaniel Griswold <nwg@fastmail.com> wrote:
There is also the VISUAL param which overrides what is inferred from EDITOR.On Fri, May 31, 2024, at 2:23 PM, Stuart Henderson wrote:> Hi all,>> I use the following terminal:>> echo $TERM> xterm-256color>> when in my ~/.profile I do:>> export EDITOR=nano>> everything works well.>> However, if I do>> export EDITOR=vim>> then when I ssh into the machine, up and down arrow in the terminal do not work anymore (it does not give me access to previous commands entered).It's an extremely annoying misfeature in ksh.If $EDITOR starts with the letters "vi" then it defaults to vi-stylecommand line editing. You can use "set -o emacs" to override that, butthen if you sudo/doas to root it will reset to vi-style editing becauseof the exported EDITOR variable.On some machines I got fed up enough with this to symlink"emacs-notreally" to vim and set EDITOR=emacs-notreally...
No comments:
Post a Comment