on Aug 30, Pete Toscano wrote:
> hmmm, this is interesting and helpful, but i have a further question.
> how do you get vim (or is it even possible?) to "soft wrap" while
> editing and then insert <eol> characters when you exit or write? this
> would be nice in that, if you're editing a file and you remove a line or
> two from a line, if there's room to fit the first word(s) from the line
> after the current one, it'll move that/those word(s) to the current line
> and fix everything after that. this would maked editing a paragraph much
> easier. of course, maybe i should just be using emacs instead of vim
> (though i do love vim).
>
> did any of that make sense?
>
Err, I think so. vim has a format option mapped (since versions 5. or
so) to gq. So you just have to select the paragraph you want to format
(that is, visualize it) and then hit 'gq'. If you have had your .vimrc
on the web, it might have Q mapped to gq. Of course, this only works for
"standard" text: quoted text wouldn't be correctly formatted, but there
must be macros doing this.
--
{~._.~} Renaud COLINET |
( Y ) [EMAIL PROTECTED] |
()~*~() (33)1 48 42 22 80 (home) |
(_)-(_) (33)1 41 75 31 37 (off) |