🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.sys5
Article #685

Re: vi exrc behaviour has changed??!!

#685
From: Uwe Mager
Date: Mon, 15 Feb 1988 20:41
23 lines
1347 bytes
In article <16883@watmath.waterloo.edu> rbutterworth@watmath.waterloo.edu (Ray Butterworth) writes:
>Actually, I'd like to see the current behaviour of .exrc changed
>to yet a third possibility.
>
>VI should not look in the current directory.
>It should look in the directory containing the file being edited.
>
>If I have a file with non-standard tabstops, I'll put the "set tabstop="
>command into a .exrc file in that file's directory.

I recommend putting a line like this into your file:

	vi:set tabstop=4|set sw=4:

Vi will look for such lines in the first or last five lines of the file
being edited.

PS:
This is also a nice feature for attacks if you have an !  command
in the last five lines.
-- 
Jens-Uwe Mager
jum@focus.UUCP || jum@cosmo.UUCP
Technical Details
Message-ID: <634@cosmo.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!bellcore!decvax!decwrl!sun!pitstop!sundc!seismo!uunet!mcvax!unido!cosmo!jum
References: <329@ttrde.UUCP> <3728@whuts.UUCP> <16883@watmath.waterloo.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!bellcore!decvax!decwrl!sun!pitstop!sundc!seismo!uunet!mcvax!unido!cosmo!jum
From: jum@cosmo.UUCP (Uwe Mager)
Newsgroups: comp.bugs.sys5
Subject: Re: vi exrc behaviour has changed??!!
Keywords: EXINIT .exrc CWD
Message-ID: <634@cosmo.UUCP>
Date: 15 Feb 88 20:41:20 GMT
References: <329@ttrde.UUCP> <3728@whuts.UUCP> <16883@watmath.waterloo.edu>
Reply-To: jum@cosmo.UUCP (Jens-Uwe Mager(sysop))
Organization: CosmoNet Kommunikationssysteme GmbH, D-300 Hannover, West Germany
Lines: 23
Posted: Mon Feb 15 21:41:20 1988