Inline URLs in emails make the text around them obscure. This is why I recommend using references to URLs.
For example, I find the following:
You will find information about our company at <http://www.example.com/> and our products are at <http://www.example.com/products/this_is_a_very_long_url_isnt_it?>. Have a good day! -- Hugo
far less readable than:
You will find information about our company at [1] and our products are at [2]. Have a good day! 1. http://www.example.com/ 2. http://www.example.com/products/this_is_a_very_long_url_isnt_it? -- Hugo
However, writing emails with references is sometimes a pain because:
I write my emails with VIM because it is powerful and fast, and yet pretty light. The only thing that I needed to be completely happy was an easy way to add references, so I wrote a few functions and macros to do the job.
The VIM code I wrote does the following:
Download the 2006-11-01 version, which fixes a typo that VIM 7 complains about (thanks to Dave Roe for reporting it).
Download the 2004-06-01 version, which removes some forgotten debugging code.
Download the 2004-05-28 version, which makes better use of local variables and therefore fixes numbering bugs.
An older version is the September 10, 2001 version.
The February 23, 2001 version had different behaviors for the insert reference function and the conversion error, which has been fixed.
The current key mapping does the following:
Note that the mode only works on an email which has headers and a
signature. In Mutt, you need to set the
following option: set edit_headers.
While in insert mode, press <F5> and enter the URL of the reference you want to include at the prompt:
From: Hugo Haas <hugo@larve.net> To: test@example.com Cc: Bcc: Subject: I am spamming you! Reply-To: You will find information about our company at -- Hugo ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Reference: http://www.example.com/
Enter the reference number (enter for the default):
From: Hugo Haas <hugo@larve.net> To: test@example.com Cc: Bcc: Subject: I am spamming you! Reply-To: You will find information about our company at -- Hugo ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Reference number (1):
Continue the editing:
From: Hugo Haas <hugo@larve.net> To: test@example.com Cc: Bcc: Subject: I am spamming you! Reply-To: You will find information about our company at [1] 1. http://www.example.com/ -- Hugo ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ -- INSERT --
In command mode, go on a URL between angle branckets:
From: Hugo Haas <hugo@larve.net> To: test@example.com Cc: Bcc: Subject: I am spamming you! Reply-To: You will find information about our company at [1] and our products are at <http://www.example.com/products/this_is_a_very_long_url_isnt_it?>. 1. http://www.example.com/ -- Hugo ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
Press <F6> and enter of reference number at the prompt:
From: Hugo Haas <hugo@larve.net> To: test@example.com Cc: Bcc: Subject: I am spamming you! Reply-To: You will find information about our company at [1] and our products are at <http://www.example.com/products/this_is_a_very_long_url_isnt_it?>. 1. http://www.example.com/ -- Hugo ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Reference number (2):
You are back in command mode with the URL replaced by a reference:
From: Hugo Haas <hugo@larve.net> To: test@example.com Cc: Bcc: Subject: I am spamming you! Reply-To: You will find information about our company at [1] and our products are at [2]. 1. http://www.example.com/ 2. http://www.example.com/products/this_is_a_very_long_url_isnt_it? -- Hugo ~ ~ ~ ~ ~ ~ ~ ~ ~
Please send comments and bugs to hugo@larve.net.
You can also express feedback on vim online.