vim-mutt-aliases : complete e-mail addresses in Vim by those in your mutt aliases file
| script karma
Downloaded by 210
Comments, bugs, improvements
script versions (upload new version)
|This plug-in lets you complete mutt aliases (listed in ~/.mutt/aliases) inside
Vim; useful when using Vim as editor for mutt (especially with $edit_headers).
(See also the shell script https://github.com/Konfekt/mutt-alias.sh to populate
the aliases file with recent e-mail addresses in your Inbox or Sent folder).
When you're editing a mail file in Vim that reads
and in your mutt aliases file there is an entry
alias foo firstname.lastname@example.org
and your cursor is right after foo, then hit Ctrl+X Ctrl+U to obtain:
The command :EditAliases opens the mutt aliases file in Vim.
(For less typing, you can (command-line) alias it to ea by vim-alias
To complete e-mail addresses inside Vim press CTRL-X CTRL-U in insert
mode. See :help i_CTRL-X_CTRL-U and :help compl-function.
The mutt aliases file is set by $alias_file in the file ~/.muttrc. To
explicitly set the path to a mutt aliases file $file, add to your .vimrc the line
let g:muttaliases_file = '$file'
For example, $file could be
4. Related Programs and Plug-ins:
To add mut aliases for all e-mail addresses found in a mail folder, such as the INBOX,
there is the shell script https://github.com/Konfekt/mutt-alias ; best run by a, say weekly,
The plugin https://github.com/Konfekt/vim-mailquery lets you complete e-mail
addresses in Vim by those in your Inbox (or any other mail folder).
Forked from Lu Guanqun's vim-mutt-aliases-plugin at https://github.com/guanqun/vim-mutt-aliases-plugin/
after commit 063a7bdd0d852a118253278721f74a053776135d.
Distributable under the same terms as Vim itself. See :help license.
This plug-in is developed at https://github.com/Konfekt/vim-mutt-aliases where issues can be filed.
|Unzip vim-mutt-aliases.zip into the folder ~/.vim on Linux and MacOS or %USERPROFILE%\vimfiles on Windows.|
Click on the package to download.
ip used for rating: 22.214.171.124