From: Ching-Hsiang Chen (chchen@stat.fsu.edu)
Date: 10/15/92


From: Ching-Hsiang Chen <chchen@stat.fsu.edu>
Subject: Using <PgDn> in VI
Date: Thu, 15 Oct 1992 06:54:51 GMT


Thanks for those kind gentlemen who told me about the key remapping
method to use <PgUp> and <PgDn> keys in VI. After checking some doc
about VI, I can now use those keys happily. For those who is not
familiar with VI, here is how to do:

Create a file '.exrc' in your home directory with the content like

:map ^[[6~ ^F
:map ^[[5~ ^B

Note: the first ^ in each line is careated by pressing <Ctrl>V
      the [[6~ is by pressing <PgDn> key
      the [[5~ is by pressing <PgUp> key
      and the ^F is by pressing <Ctrl>F

You can do the same trick with '^' ,'$', ':1', and 'G' which are
beginning of line, end of line, beginning of file, end of file.
I did it by

:map <Ctrl>V<Home> ^
:map <Ctrl>V<End> $
:map <Ctrl>V<F1> :1<Ctrl>V<Enter>
:map <Ctrl>V<F12> G

here the keys after ':map' are the ones you should 'press' during the
editing.

Steve Chen chchen@stat.fsu.edu