Re: vim | deleting end of lines inside a pattern

2007-01-11 Thread Charles E Campbell Jr
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

Re: vim | deleting end of lines inside a pattern

2007-01-11 Thread Tim Chase
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

Re: vim | deleting end of lines inside a pattern

2007-01-11 Thread Alan G Isaac
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

vim | deleting end of lines inside a pattern

2007-01-11 Thread Nikolaos A. Patsopoulos
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