On Fri, Nov 30, 2001 at 10:58:35AM +1100, John Ferlito wrote: > To enable auto word wrap you need to do a > :set tw=72 > ie set the textwidth to 72 characters. or put it on your .vimrc without > the :
I setup mutt to use the editor: set editor='vim '+/$' -c "set tw=72"' This way I wrap at 72 for email, but not for general editing in vim. > auto formating you can do in command mode with gqap there's probably a > shorter way of doing it or you can probably alias it to something > shorter but I've never looked into it. In my vimrc: " Formatting the current paragraph according to " the current 'textwidth' with ^J (control-j): imap <C-J> <C-O>gqap nmap <C-J> gqap vmap <C-J> gq Then I just user ^J to reformat. I'm pretty sure both tips I picked up from SLUG, so it's nice to see 'em returned :) -- Andrew Shipton --------------------- http://www.careless.net/andrew/ "It is inhumane, in my opinion, to force people who have a genuine medical need for coffee to wait in line behind people who apparently view it as some kind of recreational activity." -- Dave Barry -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
