On Sat, Feb 12, 2011 at 09:42:42AM -0800, Ben Fritz wrote:
> 
> 
> On Feb 12, 8:15 am, Yue Wu <[email protected]> wrote:
> > As the title, when setting wrap, long lines that extent outside the screen 
> > will
> > be showed as a folding, is it a bug or feature?
> >
> 
> I've never seen this before. What's your 'foldmethod' setting? What
> gets folded, just the single long line?
> 
> -- 
> 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

Hi Fritz, the reproduce way is:

Run vim, then run commands as follows:

    :set foldmethod=expr
    :set foldexpr=getline(v:lnum)[0]==\"\\t\"
    :set nowrap
    :set textwidth=0

Then input a very long line starts with a <tab> and is longer than your vim
screen.

Then start a new line. You can find that the first line can be folded using any
folding commands.

BTW., I'm using vim, not gvim.

-- 
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

Raspunde prin e-mail lui