On 2019-03-15, tooth pik wrote:

> On Fri, Mar 15, 2019 at 1:10 PM Gary Johnson wrote:
> >
> > On 2019-03-15, tooth pik wrote:
> > > i've got
> > >
> > > "   vim: set foldmethod=marker
> > >
> > > at the bottom of my ~/.vimrc and for reasons i have yet to discover it
> > > opens up with
> > > foldmethod=manual and
> > >
> > > :verb set fdm?
> > >
> > > tells me nothing about who set it, just that it's manual
> > >
> > > have there been any recent updates to the processing of modelines?
> > >
> > > the modelines option is 5, and i've tried putting it at the top and
> > > bottom, but it still
> > > is being ignored
> >
> > There haven't been any such changes to Vim that I know of, but
> > recent Ubuntu (e.g., 18.04) Vim packages include
> > /usr/share/vim/vim80/debian.vim which includes this:
> >
> >     " modelines have historically been a source of security/resource
> >     " vulnerabilities -- disable by default, even when 'nocompatible' is set
> >     set nomodeline
> >
> > You might try executing
> >
> >     :verbose set modeline?
> >
> > to see if that might be the problem.

> thx, but modeline is set

OK, now I see the problem.  I can reproduce it.  The problem is the
syntax of your modeline.  Vim supports two forms of modelines.  The
second form uses the word "set" and ends with a colon (:), e.g.,

    "   vim: set foldmethod=marker:

The first form does not end with a colon, but also does not include
the word "set", e.g.,

    "   vim: foldmethod=marker

Change your modeline to either of those two forms and it should work
fine.

Regards,
Gary

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui