Re: folding lines at the top of file

2006-05-21 Thread Eric Arnold
On 5/21/06, Yakov Lerner <[EMAIL PROTECTED]> wrote: I want to fold lines grouped at the top of file and matching some pattern. I use foldmethod=expr. But vim does not behave as expected. In the testcase, /a/. In the testfile (2) below, I want first 3 lines (a\na\na\n) folded, and nothing else fo

folding lines at the top of file

2006-05-21 Thread Yakov Lerner
I want to fold lines grouped at the top of file and matching some pattern. I use foldmethod=expr. But vim does not behave as expected. In the testcase, /a/. In the testfile (2) below, I want first 3 lines (a\na\na\n) folded, and nothing else folded. But vim also folds the last a\na\n lines. I thi