Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!watmath!mks.com!andy From: andy@mks.com (Andy Toy) Newsgroups: comp.sys.ibm.pc Subject: Re: Need help with VI on PC Message-ID: <1989Nov8.161040.3546@mks.com> Date: 8 Nov 89 16:10:40 GMT References: <826@philmtl.philips.ca> Reply-To: andy@mks.com (Andy Toy) Organization: Mortice Kern Systems, Waterloo, Ontario, Canada Lines: 22 In article <826@philmtl.philips.ca> barry@philmtl.philips.ca (Barry Kimelman) writes: >.... you can set >options for VI that will be processed by VI as soon as it starts >executing. eg. you can specify an environment variable EXINIT to >specify tabstop width. >So, I was wondering how can you do a similar kind of thing on the >Ms-DOS version of VI ??? You didn't mention whose VI you have so in case you have MKS VI here's how you do it. 1. You can set the environment variable EXINIT to contain the options just like on UNIX. 2. You can put the option in the file ex.rc (.exrc on UNIX) in your HOME directory. You may also have to set the HOME environment variable. -- Andy Toy, Mortice Kern Systems Inc., Internet: andy@mks.com 35 King Street North, Waterloo, UUCP: uunet!watmath!mks!andy Ontario, CANADA N2J 2W9 Phone: 519/884-2251 FAX: 519/884-8861