how can I use vim as a wordprocess with soft wordwrap and columns only 40?

Posted by Angela on Super User See other posts from Super User or by Angela
Published on 2010-12-28T04:06:39Z Indexed on 2010/12/28 10:56 UTC
Read the original article Hit count: 301

Filed under:

I have been trying to use vim as a wordprocessor to do most of my initial drafting and then open in abiword or open office to do my final printing.

Problem has been, even with :set linebreak and :set wrap, when I open it, there's a ton of line breaks. I have to go and manually remove them.

What I want is to be able to write at 40 columns wrap around softly so that when I open it up in Open Office, it gets restored to whatever that column width is, preserving things like carriage return but without all those linebreaks.

© Super User or respective owner

Related posts about vim