Reviewing the man pages I noted that vi == nvi.

When I open a file and issue an :map command I get the following:

^A     ^
^K     d$
^[0A  k
^[0B  j
^[0C  l
^[0D  h
^[[2~ i
^[[3~ x

<snip>

Where is this file being sourced from?  I created an ~/.exrc file, and tried
to map the Home and End keys.  (These keys have been created in my
/etc/X11/xinit/.Xresources file as have the Insert/Delete/PgUp/PgDn keys.)

They show up when I do

:map

from within nvi but are not being used when I am in command mode.

I mapped:

 ^[[1~ 0 // home
 ^[[4~ $ // eol

I want to try adding these keys to the file where the other default mappings
are coming from.  I can't seem to find anything that would tell me where to
find this file in on Openbsd.  I also consulted O'Reilly's Learning Vi book
before writing @misc.

Please help.  Thanks.

Openbsd fan.

Reply via email to