On Sun, 17 Sep 2006 at 9:03pm, Yakov Lerner wrote:

> On 9/17/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> >  a few years ago I had to edit text files on a big iron (IBM) and a OS
> >  called "TCO" or such.
> >
> >  The editor was [CENSORED] but there was one feature I miss since
> >  then:
> >
> >  One could hide lines matching or !matching a certain pattern. Any
> >  further edit actions were only executed with the visible lines as
> >  target. Regardless what you were doing -- only the visible lines were
> >  affected. You had to give the "unhide" command explicitely to return
> >  to "full text mode".
>
> Tim gave you the solution (:foldd). But I think there is
> one small problem with operating on non-folded lines;
> not with Tim's solution but with  folding in general.
>
> Namely, you cannot fold single line.

That is not true, you can have one line folded, however the default
value of 'foldminlines' is 1, which means single-line folds are never
shown as closed. You can however set this to 0.

-- 
HTH,
Hari

>
> So if you want to protect separate, single-standing
> lines from :folddo, you cannot.
>
> On the other hand, there is not limit on number of lines
> *between* folds. You can perfectly have
> 1 line between folds. But you cannot have 1 line *in*
> the fold.
>
> It follows that there's certain asymmetry between operating
> on unfolded lines vs operating on folded lines.
>
> Yakov

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to