On Mon, 9 Sep 2002, H.Merijn Brand wrote:

> 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:

> 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. [but you can enable it with   :set modelines]

Summary:  This is a bad idea.  Neither traditional 'vi' nor 'nvi' supports
expandtabs.  Further, at least one very common 'vi' (the one shipped with
Solaris 8) does support modelines (off by default), but doesn't support
'expandtab'.

Thus if that line were placed in every C file, and a Solaris 8 user had
"set modelines" in his or her .exrc file, then every time vi was started,
there would be an error message

    expandtab: No such option - 'set all' gives all option values

-- 
    Andy Dougherty              [EMAIL PROTECTED]

Reply via email to