Xref: utzoo comp.unix.misc:711 comp.unix.questions:27572 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!ncrlnk!ncrstp!npdiss1!mercer From: mercer@npdiss1.StPaul.NCR.COM (Dan Mercer) Newsgroups: comp.unix.misc,comp.unix.questions Subject: Re: A question on .exrc while using vi Keywords: exrc vi Message-ID: <769@npdiss1.StPaul.NCR.COM> Date: 10 Dec 90 18:14:18 GMT References: <5315@graphite20.UUCP> <1990Dec6.135646@cs.utwente.nl> Reply-To: mercer@npdiss1.StPaul.NCR.COM (Dan Mercer) Organization: StPaul Lines: 33 In article <1990Dec6.135646@cs.utwente.nl> stadt@cs.utwente.nl (Richard van de Stadt) writes: :In article <5315@graphite20.UUCP>, joshi@motcid.UUCP (Abhay B. Joshi) writes: :|> I couldn't find a newsgroup for vi questions, hence this intrusion. :|> :|> I have a simple text-file containing the following text (3 lines): :|> :|> The goal: :|> All I am trying to do is replace the 'the's by 'an's. :|> That's all. :|> :|> I set up a .exrc in the current directory which looks like (2 lines): :|> :g/the/ s//an/g :|> :|> Now I tried to do a 'vi text-file', I got a coredump! About 10 times. :|> Then I deleted the .exrc file and put the command in EXINIT. :|> I got a coredump again. (No coredump if neither .exrc nor EXINIT exists) :|> : :On a SPARCstation 1+ I get a segmentation fault : I won't ask why you're attempting this. However, at the time the exinit processing occurs, there is not yet an identifiable file (I ran into this problem several years ago). So it is not at all surprising that attempts to edit non-existent data result in memory errors. On NCR Towers, you get "No lines in buffer". (On the other hand, Towers will allow you to vi /dev/ether0, which craps out the entire machine). -- Dan Mercer NCR Network Products Division - Network Integration Services Reply-To: mercer@npdiss1.StPaul.NCR.COM (Dan Mercer) "MAN - the only one word oxymoron in the English Language"