On Fri, 30 Apr 1999 15:07:36 +0800, Tony Chen <[log in to unmask]> wrote: ...stuff deleted... >My .exrc file contains: > :map ^V^[U ^V^F > :map ^V^[V ^V^B > :map ^V^[B j > :map ^V^[A k > :map ^V^[C l > :map ^V^[D h > :map ^V^[h 1G > :map ^V^[F G > :map ^V^[Q i > :map ^V^[P x >And I tried to replace ^V with [Ctrl]V, ^[U with [esc]U, but nothing changed. > Sorry for the late response, I was on a holiday... Anyhow, 've posted this before but probably not clear enough. The above content seems ok, but can't see if it is. ALL the above "^" sequences should really be one character, so ^V stands for the V character while holding the CTRL depressed, ^F the F character with CTRL depressed etc and, yes, ^[ for the ESC character. The above commands supply mappings for respectively PGDN, PGUP, down, up, right, left, HOME (start of file), BOTTOM (end of file), Insert and Delete. If you want to make the .exrc file in vi itself you have to type for the first line (after entering insert mode): :map <CTRL>V<CTRL>V<CTRL>V<ESC>U <CTRL>V<CTRL>V<CTRL>V<CTRL>F where, representing it in yet another way, <CTRL>V stands for typing the V key while holding the Ctrl key depressed... maybe someday I should make a shar of this and post it ... Also, .exrc should normally be in your HOME directory, which means that you should probably start sh.hpbin.sys with the -L flag to get the HOME environment variable defined. Ensure this by a "echo $HOME" at the shell prompt to see if it points to the right directory. It DOES help (if not required, not sure at the moment) to have TYPEAHEAD enabled, so when in doubt do a callci 'setvar hptypeahead true' at the shell prompt. You can also try to source the file in after starting vi, to see if it then works, like this: :so .exrc Also, just to make sure the .exrc file gets read, try putting the following command as first line in it: :map q x If you can now delete a character in vi with the "q" key, at least you know the .exrc file is found and read in at startup. (the q key is not defined in standard vi setup, therefore a handy key to define your own stuff) Also, you can have vi type of capability at the shell history by issuing a "set -o vi" after the shell prompt, but that's another story... Hope this helps, Danny A. van Delft [log in to unmask]