can vi/ex source beginning of text on startup?

Mark J. Miller mark at elsie.UUCP
Mon Dec 10 23:21:38 AEST 1984


I just write my own version of vi with the appropriate definitions for the
type of directory I'm in. For example, the version of vi I use for typing
letters is:

#! /bin/sh
EXINIT='set terse shell=/bin/csh sw=4 wm=4 aw 
map! #1 ^V    |map! Ow >>$a|map #1 :n
|map #3 :ta 
map ^[Oq Gi/\<^[A\>^["zdd at z
map ^[Or 1G!Gvispell^M
map ^[OM /Spellist^M
map ^[Ol :.,$d^M'
export EXINIT
exec /usr/local/vi $@

This will start up just as fast as regular vi.

-- 
Mark J. Miller
NIH/NCI/DCE/LEC
UUCP:	decvax!harpo!seismo!elsie!mark
Phone:	(301) 496-5688



More information about the Comp.unix mailing list