On Dec 12, 5:32 am, "[email protected]" <[email protected]>
wrote:
> > > Do your folds exist but refuse to close?
> > > Or are they gone entirely?
>
> > I work without foldcolumn -- so next time it occurs I'll try to enable
> > it on the fly and see if they are gone or just refuse to work.
>
> The problem occured again.
>
> FYI: When foldcolumn is displayed in this case: There are NO folds in
> it anymore.
>
> But some breaking news: I have foldmethod=marker by default, and
> foldmethod=syntax in ~/.vim/ftplugin/c.vim. And I found out that the
> whole c ftplugin is NOT EXECUTED in this sitution. In fact, when I do
> set folmethod? it shows 'marker' instead of 'syntax'.
>
> (a) So the question behind all this is: Why is ftplugin/c.vim not
> executed (although set filetype? shows 'c').
> (b) Why does this happen only sometimes?
>
> ---- my ~/.vim/ftplugin.c basically contains this:------
>
> if(&diff)
>         exit
> endif
> ...

You say it "basically" contains the text given. Does something like
this also show up?

" Only do this when not done yet for this buffer
if exists("b:did_ftplugin")
  finish
endif

If so, try removing it.

As a side note, are you sure you want "exit" in your "if(&diff)"
block? This will save and close the buffer. Maybe you want "finish"
instead?

-- 
You received this message from the "vim_use" 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

Reply via email to