> > 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
setlocal foldtext=repeat('\ ',indent(v:foldstart)-indent(v:foldstart)/
4).getline(v:foldstart)
setlocal foldmethod=syntax
setlocal foldnestmax=6
setlocal commentstring=/*%s*/
setlocal noet

---- my ~/.vimrc has these options set (among others): -----
filetype on
filetype plugin on
set noet
set foldmethod=marker
set foldlevelstart=0

---- my ~/.vim/filetype.vim ----

if exists("did_load_filetypes")
        finish
endif
augroup filetypedetect
        au! BufRead,BufNewFile *.txt    setfiletype txt
augroup END


 Felix

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