Tip #273: Fast fixing of email quotations (too long lines)
tip karma |
Rating 82/31, Viewed by 2321
|
created: |
|
July 5, 2002 4:24 |
|
complexity: |
|
basic |
author: |
|
anonymous |
|
as of Vim: |
|
5.7 |
When using VIM as your editor of choice, even for email processing - as I do - it is often unpleasing how some MUA's quote the email body produced by mailers such as Outlook. The lines often span across multiple visual lines and its difficult to reply on certain parts of it.
With VIM, you can quickly fix those quotations to maintain a proper 75 char break. For example, when using Mutt, put this line in your .muttrc, or use a custom .vimrc_mail for it:
set editor="vim -c 'set fo=tcrq' -c 'set tw=76'"
For other MUA's this has to be fitted. However, now, when your quoted email is displayed, you can use this VIM sequence to fix it:
1. move cursor to first line of broken paragraph
2. press 'V' and move to the last line of the paragraph you want to fix
3. press 'g' and then 'q'. The marked text will wrap around to your specified textwidth (76 in our case) and the quotations will be preserved across the lines
<<automaticaly formating pasted text (p=`]) |
Some useful mappings for TeX >>
Additional Notes
|