sponsor Vim development Vim logo Vim Book Ad

Mail_mutt_alias.set : Extract an e-mail address from the mutt aliases file.

 script karma  Rating 16/6, Downloaded by 3857  Comments, bugs, improvements  Vim wiki

created by
Luc Hermitte
 
script type
utility
 
description
This script permit to insert an alias from the mutt aliases file while editing an
e-mail within vim.

Since the version 2.0, we can hit <tab> (in INSERT-mode) within an address
field (To:, Cc:, Bcc:, Reply-To) to expand an alias.
If several contacts match the to-be-expanded pattern, a menu is proposed in a
splitted window in order to choose the addresses.

Dependencies :
v2.x+ : a.vim                http://vim.sourceforge.net/scripts/script.php?script_id=31
          Actually, you should download an old version of a.vim that still exports its functions

v2.2+ : words_tools.vim http://vim.sourceforge.net/scripts/script.php?script_id=143


N.B.: The command (:Ca) and the macro (,Ca) have been abandonned since version 2.3.
 
install details
Update the path to your mutt aliases file, and put the file anywhere you want -- N.B.: $$/ftplugin/mail/ is certainly the best place you could find.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
Mail_mutt_alias_set.vim 2.3 2002-07-01 6.0 Luc Hermitte Some minor enhancements and several bugs fixed.
Mail_mutt_alias.set 2.2 2001-11-13 5.7 Luc Hermitte Many bugs have been corrected, now the script runs under VIM 5.6-Solaris. A tagging feature has been added in order to select several e-mail addresses in the list. And <tab> can now expand aliases/names expressed as regular expressions.
Mail_mutt_alias.set 2.1 2001-10-01 5.7 Luc Hermitte Correction of some regexps + definition of a syntax highlighting scheme for the menu.
Mail_mutt_alias.set 2.0 2001-10-01 5.7 Luc Hermitte Fix some problems when several aliases match a pattern through a menu to choose from.
Map tabulation as an expand character for aliases ; only within the address lines of e-messages headers.
Mail_mutt_alias.set 1.0 2001-07-27 5.7 Luc Hermitte Initial upload
ip used for rating: 142.132.191.50

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github