sponsor Vim development Vim logo Vim Book Ad

email.vim : Email auto-completion for vim. It's simple, clean and useful :)

 script karma  Rating 22/12, Downloaded by 1865  Comments, bugs, improvements  Vim wiki

created by
Todd Boland
 
script type
utility
 
description
Just as the name implies, this script will add auto-complete functionality for email addresses in vim. This is very handy for those who use vim with mutt. Enjoy.

For those of you who would rather just look at the code through your browser:
http://www.itodd.org/~itodd/email.vim

Thanks to Luc Hermitte for writing a much more advanced autocomplete script [ vimscript #46 ] which helped me create this one.

--
Todd Boland
http://www.itodd.org/

:wq
 
install details
Note: This script depends on the following basic unix tools: grep, sort, uniq, wc and xargs. Feel free to hack it up for other OSs

First create a ~/.addresses file. In this file put a list of addresses separated by new lines. Duplicates will be automatically ignored.

Load the script:
:source /path/to/email.vim

If you'd like the script to automatically load when editing a mutt email, add the following line to your ~/vimrc:
au BufRead /tmp/mutt* source /path/to/email.vim

Then on a new line type:
To: start_of_emai<tab>

where "start_of_emai" is the begining of an email address listed in ~/.addresses
 

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
email.vim 1.02 2001-12-24 6.0 Todd Boland Small update to add support for Reply-To: and From: lines.
email.vim 1.01 2001-12-21 6.0 Todd Boland Never release code at 3am. Fixed some bugs and optimized.
email.vim 1.0 2001-12-20 6.0 Todd Boland Initial upload
ip used for rating: 52.14.221.113

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