> 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
Yes, in .vim/ftplugin.vim, however, after removing, no change. > 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? Thanks, now change, though. Anyway, I am glad to say I have got a test case now. This case is based on txt files and foldmethod 'marker' and not on C files and syntax folding, however seems to address the same issue like in my original posting. Since I do not know the policies here if attachements are possible/ allowed, I just paste the files. (1) Create this new minimal file structure in ~/. .vim/filetype.vim .vim/ftplugin/txt.vim vimrc demo.txt (2) filetype.vim contains: augroup filetypedetect "au! BufRead,BufNewFile *.txt setfiletype txt au BufRead,BufNewFile *.txt setfiletype txt augroup END (3) txt.vim contains: setlocal foldmarker={,} setlocal foldmethod=marker (4) vimrc: filetype on filetype plugin on set foldmethod=marker (5) demo.txt normal text begin of fold{ content of fold } (6) Steps to reproduce: cd ~ vim -u vimrc :vsp (vertical split) :ed demo.txt (file loaded with everything folded = ok) :Ctrl-W l (switch to right window) :ed demo.txt (file loaded but folding INACTIVE = not expected) (7) Additional note: :set ft? shows nothing in both cases. This differs from the problem in my original posting, however, the effect is quite similar: Folding does not work in the other buffer. If anyone could try tro reproduce, please? 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