On 03/19/2010 11:25 AM, [email protected] wrote:
> Hello,
> 
> I have a file with one long line.
> How can I insert a line break every n columns?

You can set 'textwidth' at n columns:
  :set tw=n

Then you can use gqgq to format the current line to obey the textwidth.
A side-effect is that (usually) new lines will also wrap at n
characters. Set tw to 0 to disable it.

Hope this helps,
Vlad

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

To unsubscribe from this group, send email to 
vim_use+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to