email.vim : Email auto-completion for vim. It's simple, clean and useful :)
| script karma
Downloaded by 1327
Comments, bugs, improvements
script versions (upload new version)
|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:
Thanks to Luc Hermitte for writing a much more advanced autocomplete script [ vimscript #46 ] which helped me create this one.
|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:
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:
where "start_of_emai" is the begining of an email address listed in ~/.addresses
Click on the package to download.
ip used for rating: 22.214.171.124