double spacing in vim, vi, or cream

Polytropon freebsd at edvax.de
Sun Apr 17 15:57:32 UTC 2011


On Sun, 17 Apr 2011 06:25:45 +0200, Matthias Apitz <guru at unixarea.de> wrote:
> El día Saturday, April 16, 2011 a las 09:47:58PM -0400, david coder escribió:
> 
> > interesting suggestions that i hadn't thought of, esp knowing nothing about
> > LaTeX.  the 1st, however, results in spaces between characters, whereas what
> > i wanted was double-spacing between lines in a piece to be submitted for
> > publication.

Okay, I see now. My mistake. :-)



> At the end of editing the file:
> 
> :1,$s-$-^M-
> 
> (the ^M is to be done by holding down CTRL and pressing V and M)

And if you want a postprocessing solution, use the command
awk '{ printf("%s\n\n", $0); }' < single.txt > double.txt
for "vertical double-spacing".



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


More information about the freebsd-questions mailing list