On Fri, March 19, 2010 10:25 am, [email protected] wrote:
> Hello,
>
> I have a file with one long line.
> How can I insert a line break every n columns?
To insert a linebreak every 10th column, you could use this
substitute expression:
:%s/.\{10\}/&\r/g
Adjust width according to your need.
regards,
Christian
--
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.