From: "Richard Fish" <[EMAIL PROTECTED]>
Subject: Re: [gentoo-user] {OT} vi line breaks
Date: Sat, 5 Aug 2006 14:48:53 -0700


Hi,

 I have kinda "reverse question" to this vi/vim problem: I am using
 vim as vim (not in compatible mode). 

 When writing "normal" text in Emacs or loading normal text into emacs
 there was the possibility to reformat paragraphs wirh
 "fill-paragraphs" (ALT-Q) so there were linebreaks inserted and
 removed to make the paragraph fit best into the previously defined
 width of the line.

 I cannot find this functionality in vim...is there anything like
 that?

 Kind regards,
 mcc

 



> On 8/5/06, Grant <[EMAIL PROTECTED]> wrote:
> > Does anyone know how to prevent vi from inserting a line break after
> > every however many characters?
> 
> Is it actually inserting line breaks?  Or just wrapping long lines for 
> display?
> 
> If actually inserting line breaks, then you have textwidth set
> somewhere.  You can turn it of with:
> 
> :set textwidth 0
> 
> If it is just for display:
> 
> :set nowrap
> 
> BTW, :help will give you the built-in help system.
> 
> Of course, there is also a method of fixing this in bash.
> 
> alias vi=kedit
> 
> :-)
> 
> -Richard
> -- 
> gentoo-user@gentoo.org mailing list
> 
-- 
gentoo-user@gentoo.org mailing list

Reply via email to