Ⅰ. 插件描述
gmail viewer for vimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'yuratomo/gmail-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'yuratomo/gmail-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'yuratomo/gmail-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/yuratomo/gmail.vim
Ⅳ. 文档说明
gmail.vim
Description
The vim script for viewing gmail on vim.
You need to enable imap settings gmail, because this plugin use imap.
Requirements
- vimproc
Interactive command execution in Vim.
https://github.com/Shougo/vimproc
- openssl
A toolkit implementing SSL v2/v3 and TLS protocols with full-strength cryptography world-wide.
I have been tested to work with openssl included in msysgit for Windows.
http://www.openssl.org/
http://code.google.com/p/msysgit/
Setting
- Enable imap
Please enable imap settings gmail.
(Please search on yourself) Install vimproc
If you have installed Vundle, please set as follows in your .vimrc.Bundle git://github.com/Shougo/vimproc.git- Through the path to openssl
let &path = $path . 'c:Program filesgitbin'
vimrc settings such as described in the following. (Not required)
- Server settings
let g:gmail_imap = 'imap.gmail.com:993'
let g:gmail_smtp = 'smtp.gmail.com:465'
- User name settings
let g:gmail_user_name = 'xxx@gmail.com'
- Signature when sending mail
let g:gmail_signature = '# ' . g:gmail_user_name . '(by gmail.vim)'
- Server settings
Usage
- Start
Use the following commands in Command mode to start Gmail.
:Gmail
- Operations
The first line of each screen is the menu.
Please move cursor on the menu you want to perform, and press the Enter key.
Two Factor Authentication
- Setup an application specific password for gmail.vim under your google security settings.
- Create the following ~/.anyname
- Please set the file name that can not be analogized to .anyname.
let g:gmail_user_name = 'xxx@gmail.com'
call gmail#imap#set_password('application_specific_password')chmod 700 ~/.anyname
# NOTE THE DOUBLE ARROW - SINGLE WILL OVERWRITE YOUR VIMRC
echo 'source ~/.anyname' >> ~/.vimrcThis will allow you to keep your application specific password private, even if you share your vimrc publically via github or elsewhere.
ScreenShots
- Screen Image
Other
- The disclaimers and copyright etc.
The author does not assume any responsibility for damages or any loss of profits
resulting directly or indirectly caused by this script.
We will use the condition that you accept the disclaimer of any damages.
HISTORY
2012/08/12 (1.0) first release
2013/01/28 (1.1) append 'archive' feature
remove 'delete' feature
2013/02/05 translate README.md
2013/03/29 (1.3) support delete feature
2013/05/01 (1.3.1) support unread feature for message window (#6)
2013/05/01 (1.3.2) append <Plug> keymaps and default keymap 'dd' , 'r' , 'R' and 'x' (#7)
buf fix delete feature
2013/05/01 (1.3.3) append g:gmail_nomove_after_select (#8)
2013/05/01 (1.3.4) replace '—' to '--' for easy_html_view (#9)
2013/05/01 (1.3.5) append g:gmail_show_log_window for debug
2013/07/07 (1.3.6) 'c' should not be mapped when composing emails.(#12)
2014/07/04 (1.3.7) fix E154: Duplicate tag vimproc in file $HOME/.vim/.neobundle/doc/vimproc.txt