I frequently copy and paste text from web pages and would like to break lines at (say) 72 without splitting words.

My preference is to do this either on the command line
or by
ESC :command

I've read the post in the thread "auto-wrapping text" by A.J.Mechelynck
in which he suggests gggqG
but I can't see how to do this from either command line or EX command.

vim wrapmargin=40 testfile
does not work.

The best thing I've seen so far is, in vi
:set wm=0   or   :set wm=5
both of which cause vi to wrap lines at 0 or 5 characters from the _right_ margin which comes to a maximum line of 62 which is a little small.

I've also tried
set tw=nn
which doesn't seem to do anything.

I can't seem to find the appropriate command either on line of using my favorite reference O'Reilly's "VI Editor Pocket Reference".

Could someone help me?

Larry
--
Larry Alkoff N2LA - Austin TX
Using Thunderbird on Linux

Reply via email to