Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
128 lines (82 sloc) 3.23 KB

gmail.vim

Description

The vim script for viewing gmail on vim. You need to enable imap settings gmail, because this plugin use imap.

Requirements

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 files\git\bin'

  • 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)'

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' >> ~/.vimrc

This will allow you to keep your application specific password private, even if you share your vimrc publically via github or elsewhere.

ScreenShots

  • Screen Image

sample1

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 '&mdash;' 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
Something went wrong with that request. Please try again.