Eliminating EOL in text files

2010-12-16 Thread Anthony Campbell
I occasionally want to eliminate all the text wrapping in a file (to be able to import it into oowriter). I have tried setting tw=0 and fo-=t but text wrapping persists. I can get the effect by setting tw to a large value, such as 2000, but is there a better way? -- Anthony Campbell - a...@acamp

Re: Eliminating EOL in text files

2010-12-16 Thread Marc Weber
Excerpts from Anthony Campbell's message of Thu Dec 16 14:02:04 +0100 2010: > I occasionally want to eliminate all the text wrapping in a file (to be > able to import it into oowriter). > I have tried setting tw=0 and fo-=t but text wrapping persists. I can > get the effect by setting tw to a lar

Re: Eliminating EOL in text files

2010-12-16 Thread Anthony Campbell
On 16 Dec 2010, Marc Weber wrote: > Excerpts from Anthony Campbell's message of Thu Dec 16 14:02:04 +0100 2010: > > I occasionally want to eliminate all the text wrapping in a file (to be > > able to import it into oowriter). > > > I have tried setting tw=0 and fo-=t but text wrapping persists. I

Re: Eliminating EOL in text files

2010-12-16 Thread Tim Chase
On 12/16/2010 10:05 AM, Anthony Campbell wrote: That joins ALL the lines. What I need to do is to have each paragraph as a contimuous line, so that when I import the file into oowriter it will be easily editable. You might try: :g/\%^\|\n\@<=\s*\n/,/\n\n\|\%$/j It doesn't leave a blank spac

Re: Eliminating EOL in text files

2010-12-16 Thread Anthony Campbell
On 16 Dec 2010, Tim Chase wrote: > On 12/16/2010 10:05 AM, Anthony Campbell wrote: > >That joins ALL the lines. What I need to do is to have each paragraph as > >a contimuous line, so that when I import the file into oowriter it will > >be easily editable. > > You might try: > > :g/\%^\|\n\@<=\

Re: Eliminating EOL in text files

2010-12-16 Thread Tim Chase
On 12/16/2010 10:35 AM, Anthony Campbell wrote: On 16 Dec 2010, Tim Chase wrote: :g/\%^\|\n\@<=\s*\n/,/\n\n\|\%$/j Thanks very much - that works perfectly. Now I must try to understand _how_ it works! It breaks down as :g/pattern1/action where pattern1 is "find the beginning of a parag

Re: Eliminating EOL in text files

2010-12-17 Thread Anthony Campbell
On 16 Dec 2010, Tim Chase wrote: > On 12/16/2010 10:35 AM, Anthony Campbell wrote: > >On 16 Dec 2010, Tim Chase wrote: > >> :g/\%^\|\n\@<=\s*\n/,/\n\n\|\%$/j > > > >Thanks very much - that works perfectly. Now I must try to understand > >_how_ it works! > > It breaks down as > > :g/pattern1/ac

Re: Eliminating EOL in text files

2010-12-17 Thread Ben Fritz
On Dec 16, 7:02 am, Anthony Campbell wrote: > I occasionally want to eliminate all the text wrapping in a file (to be > able to import it into oowriter). > > I have tried setting tw=0 and fo-=t but text wrapping persists. I can > get the effect by setting tw to a large value, such as 2000, but i

Re: Eliminating EOL in text files

2011-04-09 Thread Andy Wokula
Am 16.12.2010 17:21, schrieb Tim Chase: On 12/16/2010 10:05 AM, Anthony Campbell wrote: That joins ALL the lines. What I need to do is to have each paragraph as a contimuous line, so that when I import the file into oowriter it will be easily editable. You might try: :g/\%^\|\n\@<=\s*\n/,/\n\

Re: Eliminating EOL in text files

2011-04-10 Thread Ben Schmidt
On 9/04/11 6:51 PM, Andy Wokula wrote: Am 16.12.2010 17:21, schrieb Tim Chase: On 12/16/2010 10:05 AM, Anthony Campbell wrote: That joins ALL the lines. What I need to do is to have each paragraph as a contimuous line, so that when I import the file into oowriter it will be easily editable. I

Re: Eliminating EOL in text files

2011-04-15 Thread Anthony Campbell
On 10 Apr 2011, Ben Schmidt wrote: > On 9/04/11 6:51 PM, Andy Wokula wrote: > >Am 16.12.2010 17:21, schrieb Tim Chase: > >>On 12/16/2010 10:05 AM, Anthony Campbell wrote: > >>>That joins ALL the lines. What I need to do is to have each paragraph as > >>>a contimuous line, so that when I import the