Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: vim ignores formatoptions

3 views
Skip to first unread message
Message has been deleted

Gary Johnson

unread,
Dec 10, 2009, 6:30:52 PM12/10/09
to
In comp.editors Florian Rehnisch <eix...@gmx.de> wrote:
> o Bob <je...@rahul.net>:
>
> > my ~/.vimrc file:
>
> > :set fo=cro
>
> > When I edit a file and type :set
> > formatoptions=croql
>
> > If I change ts=4 to ts=8 it changes. I think
> > that theres a bug in reading the fo / formatoptions
> > option when vim starts up, but maybe Im wrong.
>
> > Id ignore this issue but the autocomment feature is
> > killing me everytime I work on source files.

I'm not clear on exactly what you're observing. I'm also not aware of
anyone reporting a problem with the reading of 'formatoptions' at
startup, or at any other time, so I doubt very much that you've found a
bug in vim.

You say you have

set fo=cro

in your ~/.vimrc file, so it should be true that starting vim without a
file name and executing

:verbose set fo?

displays

formatoptions=cro
Last set from ~/.vimrc

Is that true? Then you say that you edit a file and type

:set formatoptions=croql

so it should be true that again executing

:verbose set fo?

displays

formatoptions=croql

without any "Last set from" line. Is that true? Then you say "it"
changes. I assume you mean the value of 'formatoptions' changes. If
so, to find out what changed it, again execute

:verbose set fo?

and see what it reports.

--
Gary Johnson

0 new messages