Hi,

I am hunting a folding issue with C files and syntax folding for some
time now.

The test case below deals with txt files, however, if I am not wrong,
demonstrates the same behaviour: Opening the same file in a vertically
split window, does fold the file in one of the windows only.

Could anyone confirm by doing these steps:

(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. Which differs from my syntax
based folding issues, 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

Reply via email to