-   Linux - Software (
-   -   VIM-style wrapping to OpenOffice style (

schmmd 12-20-2004 04:01 PM

VIM-style wrapping to OpenOffice style
Anyone know the best way to change a file from VIM-style line wrapping (i.e. wrapping at a certain interval by inserting a return character) to a word processor style word wrapping (i.e. OpenOffice when the text wraps because it hits the edge of the text box)? Thank you.

wipe 12-21-2004 06:50 PM

What's your situation like? What are you doing and in which program?

Here's a scenario: when some piece of text has been wrapped so that it contains newline characters that cause line breaks, you probably want to remove those newlines to let Open Office wrap the text dynamically. I don't know whether OOo has a re-wrap tool yet, but one way of doing it is with Find & Replace (in Edit menu). Select the Regular expressions check box and put a $-sign in the Search for box and a space in the Replace with box. This converts all line endings to spaces when you click Replace All.

The same thing for text files is possible also with commandline tools.


All times are GMT -5. The time now is 11:06 AM.