[comp.editors] vi - bug or not?

hrjoist@medusa.informatik.uni-erlangen.de (Holger Joist) (07/16/90)

Hello!

Can someone tell me, if the following is a bug or not?

I mapped: "map ^V  ^F", so it's possible to page down a side with
<space>.  And that really worked. But after that, it was impossi-
ble for me, to use the  's'-command  for  substitution  (not  the
":s"-command). If I tried it, there always rang the bell.

I think this must be a bug. But perhaps I'm wrong, so that  some-
one can tell me the truth.


Name  : Holger Joist
E-Mail: hrjoist@medusa.informatik.uni-erlangen.de
-- 
Name  : Holger Joist
E-Mail: hrjoist@medusa.informatik.uni-erlangen.de

steinbac@hpl-opus.HP.COM (Gunter Steinbach) (07/17/90)

Yes, it does the same on my HP-UX system.  And I suspect that is because
"s" is internally mapped to "c ", which does the same thing after all.

The same thing happens if you "map w ^F".  Try it, and you'll see it
doesn't let you do a "cw" anymore.

Die Moral von der Geschicht (the moral of the story):  Don't map your
basic movement commands to something that is not a basic movement
command.  Which ^F seems not to be because it is regarded internally as
a scroll/redraw of the screen rather than a movement.  By the same
token, you can not do a "c^E" etc.

I mapped the escape sequence that my HP keyboard's "next page" key
generates to "Lz+", so I can move pages without overlap and without
using my little finger.  Maybe you can do the same thing on your
keyboard.

	 Guenter Steinbach		gunter_steinbach@hplabs.hp.com