Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-20-2004, 04:01 PM   #1
LQ Newbie
Registered: Mar 2004
Location: Everett, WA
Distribution: Slackware 9.1
Posts: 27

Rep: Reputation: 15
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.
Old 12-21-2004, 06:50 PM   #2
Registered: Jun 2004
Location: High Green
Distribution: Fedora Core 4
Posts: 180

Rep: Reputation: 30
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.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
new [quote] style Ynot Irucrem LQ Suggestions & Feedback 9 11-09-2005 09:25 PM
How to know if I am using mbox-style or maildir-style? Niceman2005 Linux - General 1 09-23-2005 12:08 PM
what's up with the cartoony style :D darkleaf General 12 01-03-2005 05:27 AM
how to change mandrake style menu to kde style menu msalimane Mandriva 1 12-07-2004 01:16 PM
Fluxbox Style oulevon Linux - Software 3 12-24-2002 10:25 PM > Forums > Linux Forums > Linux - Software

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration