On Tue, Feb 15, 2011 at 05:41:52PM +1100, Ben Schmidt wrote: > On 15/02/11 11:43 AM, Yue Wu wrote: > > 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? > > Yes, that's right. So with nowrap, that line should only be folded when > fml is 0; but with wrap, it should be folded if fml is 2 or less. At > least, that seems to be our current interpretation of the documentation!
Now we reach the same point finally. :) > > > 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. > > Interesting. I'll have to try it out more. When I did a quick test, it > didn't behave like this for me, but maybe my line wasn't long enough. You can check if it's long enough by set wrap/nowrap. In my case, fml takes effect with the line no matter wrap or nowrap. > > > 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. > > Yeah. There's definitely a bug here. Or more than one. It's just a bit > complicated, particularly since doing certain things doesn't update the > folds properly, so the bug 'comes and goes' a bit. Hope Bram can confirm it. -- 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