On Mon 09 Sep 2002 18:36, Andy Dougherty <[EMAIL PROTECTED]> wrote:
> On Sun, 8 Sep 2002, Nicholas Clark wrote:
> 
> > from perl5-porters:
> > 
> > > > Are we going to assimilate what parrot is doing in all its C files - 
> 
> > > >  * vim: expandtab shiftwidth=4:
> 
> > > For most vi versions the portable vi modeline would be
> > >  * vi: set expandtab shiftwidth=4:
> > 
> > Would changing the parrot boilerplate in this way be a good idea?
> 
> It wouldn't hurt, but I don't think it'd help either.  As far as I know,
> only vim actually reads that line in the source file and automatically
> executes it.  Traditional 'vi' doesn't try to execute that line in the
> source file and so it doesn't matter whether it's portable or not.
> Further, traditional 'vi' doesn't have an 'expandtab' option anyway.

most vi's do, but only when it appears in the first vive or last five lines of
the file. For security reasons some(most) vi's have disabled this feature by
default.

e.g. elvis has it disabled by default, but you can enable with

:se ml
or
:se modeline

-- 
H.Merijn Brand        Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using perl-5.6.1, 5.8.0 & 633 on HP-UX 10.20 & 11.00, AIX 4.2, AIX 4.3,
  WinNT 4, Win2K pro & WinCE 2.11.  Smoking perl CORE: [EMAIL PROTECTED]
http:[EMAIL PROTECTED]/   [EMAIL PROTECTED]
send smoke reports to: [EMAIL PROTECTED], QA: http://qa.perl.org


Reply via email to