On Feb 12, 6:10 pm, Yue Wu <[email protected]> wrote:
> 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, visithttp://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.
>

I'm confused. You specified a fold expression that would fold your
line, and are surprised that the line gets folded?

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