On Mon, Feb 14, 2011 at 10:34:09PM +1100, Ben Schmidt wrote: > > But folding for one line makes no sense at all, it confuses people > > to > > think that there're multiple lines at there, but actually it isn't. > > It doesn't always make no sense. As I said earlier, you may have > foldtext or fold highlighting that means something to you.
Thanks, I got it, it makes sense, so short screen line not folded should be considered as a bug. On Tue, Feb 15, 2011 at 08:44:46AM +1100, Ben Schmidt wrote: > On 15/02/11 3:34 AM, Christian Brabandt wrote: > > On Mon, February 14, 2011 12:34 pm, Ben Schmidt wrote: > >> I think there is a bug here, but it's not the bug you think. > >> > >> I can make a short single line fold, but it doesn't always do it at > >> first. It seems I have to make a two-line fold and then shorten it > >> before the single line will fold. I think this is the bug. It should > >> fold straight away. > > > > I don't agree. If I set foldminline to zero, vim perfectly folds even > > a single screen line. But whenever the line length changes and crosses > > the 'foldminline' limit, it does not automatically apply the folds. > > You need to force evaluating the fold logic, for example by using zx or > > setting foldminlines. And I would consider this a bug. > > Sorry; I was unclear. What I meant was not that it 'should fold straight > away' but that it 'should be foldable straight away'. > > I'm baffled by you wanting to set 'foldminlines' to zero. The help says: > > "Sets the minimum number of screen lines for a fold to be displayed > closed." I'm confused with `screen line', I think 3 screen lines without EOL in 'wrap' condition will be a long screen line in 'nowrap' condition, right? I've tried to twiddled with 'fml' before, and when in the above case, set 'fml' to '2' will make the long screen line get folded too, but set to '3' will not get it folded. So I think, if set 'fml' to '1', one screen line should not be folded, if so, then the long screen line should not get folded, it's a bug. -- Regards, Yue Wu Key Laboratory of Modern Chinese Medicines Department of Traditional Chinese Medicine China Pharmaceutical University No.24, Tongjia Xiang Street, Nanjing 210009, China -- You received this message from the "vim_dev" 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
