Re: Wrapping non-wrapped e-mail when replying [SEC=UNCLASSIFIED]
0n Thu, Apr 28, 2011 at 02:51:32PM -0500, David Champion wrote: * On 27 Apr 2011, Trey Sizemore wrote: I'd like to find out how to wrap long lines in e-mails that I'm replying to. My mutt is setup to automatically wrap lines when I compose, but I'd like to be able to also lap long lines in e-mails when I reply. I use with gqap functionality within vim (.vimrc) (F1 being the key one you want): * F1 to re-format the current paragraph correctly * F2 to format a line which is too long, and go to the next line * F3 to merge the previous line with the current one, with a correct nmapF1gqap nmapF2gqqj nmapF3kgqj map!F1ESCgqapi map!F2ESCgqqji map!F3ESCkgqji Works wonderfully! -Alex IMPORTANT: This email remains the property of the Department of Defence and is subject to the jurisdiction of section 70 of the Crimes Act 1914. If you have received this email in error, you are requested to contact the sender and delete the email.
Re: Wrapping non-wrapped e-mail when replying [SEC=UNCLASSIFIED]
0n Thu, Apr 28, 2011 at 02:51:32PM -0500, David Champion wrote: * On 27 Apr 2011, Trey Sizemore wrote: I'd like to find out how to wrap long lines in e-mails that I'm replying to. My mutt is setup to automatically wrap lines when I compose, but I'd like to be able to also lap long lines in e-mails when I reply. Besides vim, you can use a program called 'par'. It is brilliant. I set $display_filter to use it so that I get the neat line wrap for reading as well. I also have several vi macros that use it for reflowing text in different styles. (Even if I did use vim, par is more flexible.) David, any chance you can post any examples of your config for par ? -Alex IMPORTANT: This email remains the property of the Department of Defence and is subject to the jurisdiction of section 70 of the Crimes Act 1914. If you have received this email in error, you are requested to contact the sender and delete the email.
Re: Wrapping non-wrapped e-mail when replying
* On 27 Apr 2011, Trey Sizemore wrote: I'd like to find out how to wrap long lines in e-mails that I'm replying to. My mutt is setup to automatically wrap lines when I compose, but I'd like to be able to also lap long lines in e-mails when I reply. Besides vim, you can use a program called 'par'. It is brilliant. I set $display_filter to use it so that I get the neat line wrap for reading as well. I also have several vi macros that use it for reflowing text in different styles. (Even if I did use vim, par is more flexible.) -- David Champion • d...@uchicago.edu • IT Services • University of Chicago
Wrapping non-wrapped e-mail when replying
I'd like to find out how to wrap long lines in e-mails that I'm replying to. My mutt is setup to automatically wrap lines when I compose, but I'd like to be able to also lap long lines in e-mails when I reply. I have googled and see that with Vim as the editor, 'gq' is likely what I want, but reading the help on this I'm still not sure how to invoke/use it. Ideally, it would be nice to have the lines in the original e-mail that are too long to automatically be wrapped in the reply when I hit 'r'. -- Cheers, Trey The universe is change; our life is what our thoughts make it. --Antoninus, Marcus Aurelius Darwin tbook-2.local 10.7.0 i386 10:54 up 4 days, 20:23, 4 users, load averages: 0.13 0.25 0.39
Re: Wrapping non-wrapped e-mail when replying
On Wed, Apr 27, 2011 at 10:59:04AM -0400, Trey Sizemore wrote: I'd like to find out how to wrap long lines in e-mails that I'm replying to. My mutt is setup to automatically wrap lines when I compose, but I'd like to be able to also lap long lines in e-mails when I reply. I have googled and see that with Vim as the editor, 'gq' is likely what I want, but reading the help on this I'm still not sure how to invoke/use it. Ideally, it would be nice to have the lines in the original e-mail that are too long to automatically be wrapped in the reply when I hit 'r'. Hi Trey, Assuming you are using vim as your editor of choice, when composing a reply, you can issue the command 'gq}' when your cursor is at the start of a paragraph you are replying to and when you are in command mode, to rewrap that paragraph using your configured preferences for vim. It even is kind enough to properly indent characters for you. As an alternative, 'gqG' will reindent the entire email. I hope this helps. Kind regards, Remco signature.asc Description: Digital signature
Re: Wrapping non-wrapped e-mail when replying
On Wed Apr 27, 2011 06:22PM, Remco Rijnders wrote: On Wed, Apr 27, 2011 at 10:59:04AM -0400, Trey Sizemore wrote: I'd like to find out how to wrap long lines in e-mails that I'm replying to. My mutt is setup to automatically wrap lines when I compose, but I'd like to be able to also lap long lines in e-mails when I reply. I have googled and see that with Vim as the editor, 'gq' is likely what I want, but reading the help on this I'm still not sure how to invoke/use it. Ideally, it would be nice to have the lines in the original e-mail that are too long to automatically be wrapped in the reply when I hit 'r'. Hi Trey, Assuming you are using vim as your editor of choice, when composing a reply, you can issue the command 'gq}' when your cursor is at the start of a paragraph you are replying to and when you are in command mode, to rewrap that paragraph using your configured preferences for vim. It even is kind enough to properly indent characters for you. As an alternative, 'gqG' will reindent the entire email. I hope this helps. Kind regards, Remco Thanks Remco! That works perfectly! -- Cheers, Trey The beauty of the soul shines out when a man bears with composure one heavy mischance after another, not because he does not feel them, but because he is a man of high and heroic temper. --Aristotle Darwin tbook-2.local 10.7.0 i386 12:37 up 4 days, 22:06, 4 users, load averages: 0.83 0.62 0.54
Re: Wrapping non-wrapped e-mail when replying
On Wed, Apr 27, 2011 at 10:59:04AM -0400, Trey Sizemore wrote: I'd like to find out how to wrap long lines in e-mails that I'm replying to. My mutt is setup to automatically wrap lines when I compose, but I'd like to be able to also lap long lines in e-mails when I reply. I have googled and see that with Vim as the editor, 'gq' is likely what I want, but reading the help on this I'm still not sure how to invoke/use it. Take a try with this line. First reply to this email, move the cursor to this line an press consecutively Vgq. V select the whole line while gq wraps it. Ideally, it would be nice to have the lines in the original e-mail that are too long to automatically be wrapped in the reply when I hit 'r'. I don't think it is hard to do this. Just tell vim to select the whole file and wrap at startup. m.
Re: Wrapping non-wrapped e-mail when replying
On Apr 27, 2011 at 07:07 PM +0200, Marco Giusti wrote: Take a try with this line. First reply to this email, move the cursor to this line an press consecutively Vgq. V select the whole line while gq wraps it. `gqq` also wraps the currently selected line. Might be faster than `Vgq`, though the latter is certainly useful when you want to select several lines. Furthermore, if you use the mail vim script [1], you get some other useful mail related macros to use. I think it is included with newer versions of vim automatically. [1]: http://www.vim.org/scripts/script.php?script_id=813