Jack Donohue wrote: >> :v (and :g) made my day..! > > Yes, I use this a lot if I just want to filter out a set of > lines, or see only lines containing some text (like the old > XEDIT command). But what I'd really like to to is continue > editing in this view and not lose all the hidden lines, more > like folding. I expect folding can do this, but I've never > gotten it to work and it seems pretty cumbersome. I'm looking > for a simple solution involving maybe a couple of command I can > make a map for. > > I guess I'm looking for a g or v command that folds the lines > instead of actually deleting them.
The original post specifically asked for a non-fold based solution to "hiding lines". The first step toward finding a non-"cumbersome" solution that can be mapped and which results in folding away certain lines is to define what needs to be hidden (with everything else displayed or what needs to be displayed with everything else hidden). --Suresh
