Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!spool.mu.edu!uunet!mcsun!unido!sapwdf!wohler From: wohler@sapwdf.UUCP (Bill Wohler) Newsgroups: comp.unix.questions Subject: Re: .exinit file in VI Message-ID: <2595@sapwdf.UUCP> Date: 19 Feb 91 16:13:52 GMT References: <1991Feb18.153009.21006@zip.eecs.umich.edu> <1991Feb19.122717.8367@informatik.uni-erlangen.de> Reply-To: Bill Wohler Organization: SAP AG, Walldorf, Germany Lines: 22 ehmeier@immd4.informatik.uni-erlangen.de (Erich Meier) writes: >bguthy@amazon.eecs.umich.edu (Bala S. Guthy) writes: >>Hello Netlanders, I have a simple question about vi, hope >>there is a simple answer. How do I make read my .exinit file >>in the $HOME directory? >You have to name the file ".exrc" and put it in your home. >The ex or vi will read it automatically at initialisation. to slim down on startup time reading .exrc, put the vi stuff in an environment variable called EXINIT. zum biespiel in csh: setenv EXINIT \ "set ai terse redraw wm=10|map , ^^|map V :%s/_^V^V^H//g|map ^X :w^M^Z" those are actual control characters in there (anyone know how to put control characters in without actually having control characters?). --bw wohler@sap-ag.de