[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Stripping EOL feeds...



will trillich wrote:
On Mon, Nov 25, 2002 at 10:04:48AM +0530, Sandip P Deshmukh wrote:

On Sun, Nov 24, 2002 at 10:32:14PM -0600, ZephyrQ wrote:

	I'm trying to format the debian install manual (text version) for
printing and I'm trying to save a couple of trees.  Is there an easy way
to strip the line breaks so the text will come out unformatted?  This
way I can reduce the font and print whole pages of itty bitty debian
install text which, in my own sick way, helps me find info I need
quicker...


vim is really powerful once you get into the macro language
(there's probably a way to program a prime number generator in
there somewhere) but for the standard user interaction it's a
LINE-ORIENTED beast. you can split a line here to make two
lines, you can join two lines together to make one big one --
but for the most part you can't massage text across lines.
vim is great, but it has its stumbling blocks...


How to do this in vim:
G
remember what line number is the last line, call it N
gg
<number N> J

In general, you can put a large number before most commands to do the command that many times...[For this command vim doesn't like it if you try to join more lines than exist]



Reply to: