[Long] Re: Re: h,j,k,l in vi.

Robert Viduya robert at gitpyr.UUCP
Sat Mar 2 15:49:58 AEST 1985


><
Posted from  csw at ulysses.UUCP (Chris Warth)
> However, I must make allowances for those people using vi.  Vi
> provides a method of mapping that I call "interpreted mapping".
> Interpreted mapping simply allows you to substitute one key sequence
> with another.  When the first sequence is typed, the second sequence
> is inserted in its place and interpreted normally.  This method has
> its drawbacks;  in vi, it is not possible to map '^F' to some other
> command and still be able to scroll forward.

Um, sorry, but you can map ^F and still be able to page forward.  You just
have to set noremap.  I just tried it and it works.  Here's what I typed:

	:set noremap
	:map ^F ^G
	:map ^A ^F

This set control-F to show what file you're editting and where.  Control-A
is now the page forward key.

				robert
-- 
Robert Viduya
Georgia Institute of Technology

...!{akgua,allegra,amd,hplabs,ihnp4,masscomp,ut-ngp}!gatech!gitpyr!robert
...!{rlgvax,sb1,uf-cgrl,unmvax,ut-sally}!gatech!gitpyr!robert



More information about the Comp.unix mailing list