On Mon, Jan 07, 2013 at 02:09:01PM +0100, Lars von den Driesch wrote: > However, I like vim and as soon as I set the EDITOR env variable to it > the "arrow up/down" functionality is gone. In fact even if EDITOR is > set with "export EDITOR=" the functionality is gone. Commands typed in > still appear in the history using "fc -l". I just cannot use the > arrow-keys. > > What am I missing here? Can someone confirm this?
It's a silly ksh misfeature. ksh switches to vi editing mode as soon as vi is set as an editor. I also prefer emacs editing mode in the shell but use vim, so I put the following line into ~/.kshrc (or ~/.profile if you prefer) to force emacs editing mode in ksh regardless of what EDITOR is set to: set -o emacs