Op donderdag 26 april 2007, schreef Nikolaos A. Patsopoulos: > Hi, Hi
> I want to join all lines that are inside a given pattern and occurs > more than once in the text, ie: > > .... > PatternStart .... > ....text1 > ....text2 > ...text3 > ..text4 > PatternEnd > ... > ... > > > PatternStart .... > ....text1 > ....text2 > ...text3 > ..text4 > ... > ...textn > PatternEnd > .... > > > ... > PatternStart ........text1....text2...text3..text4PatternEnd > .... > .... > > PatternStart ........text1....text2...text3..text4... > ...textnPatternEnd .... > > I tried to use: > :g/PatternStart\_.\{-}PatternEnd/ J How about: :g/PatternStart/,/PatternEnd/j Peter