vim-mutt-aliases-plugin


Ⅰ. 插件描述

This vim plugin aims at auto-completing aliases during mailing editting in mutt.

Ⅱ. 基本信息

创建日期:  2011-08-21
使用用户:  3
Github星:  3
插件作者:  guanqun

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'guanqun/vim-mutt-aliases-plugin'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'guanqun/vim-mutt-aliases-plugin'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'guanqun/vim-mutt-aliases-plugin'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/guanqun/vim-mutt-aliases-plugin

Ⅳ. 文档说明

mutt-aliases.vim

Auto complete Mutt aliases according to the file ~/.mutt/aliases.
This is especially useful for users who are editing Mutt mails via vim.

Installation

Put file mutt-aliases.vim into some place you're most comfortable with.
Add the below line into your ~/.vimrc file:

source <the-path-to-your-stored-mutt-aliases-vim-file>

It should work out of box, though there's a simple assumption that your
Mutt configuration is located at ~/.muttrc.

Usage

If you're editting file in Mutt:

From: Lu Guanqun <guanqun.lu@gmail.com>
To: foo
Cc: 
Subject: about mutt aliases plugin
Reply-To: 

And your cursor is just after foo, hit Ctrl+X Ctrl+U to get the full
name.

From: Lu Guanqun <guanqun.lu@gmail.com>
To: My Foo <foo@bar.com>
Cc: 
Subject: about mutt aliases plugin
Reply-To: 

Of course, I assume you have a record in your alias file:

alias foo My Foo <foo@bar.com>

License

Distributable under the same terms as Vim itself. See :help license.

添加新评论