Nikolaos A. Patsopoulos wrote:
Hi,
I would like to delete all end of lines (\n) inside a given pattern
that runs through a text. The pattern is like this:
text1 \n
text2 \n
text3 \n
text4 \n
text5 \n
text6 \n
... \n
Does
:%s/\_.\{-}\ze/\r/g
do what you want?
I suggest that you read
:h
I would like to delete all end of lines (\n) inside a given pattern that
runs through a text. The pattern is like this:
text1 \n
text2 \n
text3 \n
text4 \n
text5 \n
text6 \n
... \n
Any help?
IIUC, you want something like
:g//+,//-s/\n
which will join all the lines between the two PubmedA
On Thu, 11 Jan 2007, "Nikolaos A. Patsopoulos" apparently wrote:
> I would like to delete all end of lines (\n) inside a given pattern that
> runs through a text. The pattern is like this:
>
> text1 \n
> text2 \n
> text3 \n
> text4 \n
> text5 \n
> text6 \n
> ... \n
>
Perhaps
:g//.+1
Hi,
I would like to delete all end of lines (\n) inside a given pattern that
runs through a text. The pattern is like this:
text1 \n
text2 \n
text3 \n
text4 \n
text5 \n
text6 \n
... \n
Any help?
Thanks