Post by c***@yahoo.comslackware 15.0 has changed to nvi and now it behaves like FreeBSD's vi: In
insert mode when you move to the first of a line it switches to command
mode. I'd rather it didn't but it hasn't worried me enough to look into
how to change it. But I have wondered why.
I'm guessing you're using the 'Home' button to return to the beginning
of the line? On my machines, if I hit Home while in insert mode on nvi,
it inserts a junk character, and *then* goes into normal mode. So then
when you hit Home again, it does return to the beginning of the line,
albeit in normal mode.
So if that's what you're doing, I'm thinking this has more to do with
using the Home button to return to the beginning of the line than
specific behaviour in nvi.
I only really use vim, but in standard vi editors, you return to the
beginning of the line by typing '0' in normal mode. So that is how I've
trained myself to do it for years, and the muscle memory is just not
going to change. So I don't really personally have much motivation to
get this working with the Home button. So I'm thinking this likely has
to do with keymappings, etc., and some of the usual gross stuff that can
cause Backspace not to work as expected.