email.vim : Email auto-completion for vim. It's simple, clean and useful :)
script karma |
Rating 22/12,
Downloaded by 1994 |
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 |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 3.145.36.171
|