use you mailbox as your note place
Vim script
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
plugin
LICENSE
README.md

README.md

Introduction

use you gmail mailbox as your note place. when you use this plugin, your can send the current text to your mailbox(gmail), within the default inbox named "gnote",
the subject of your note will be your filename without suffix by default, so same filename(without suffix) will be in same dialogue. Just have a try, you'll get the effect.

Why I write this plugin

I'd like to write note in my vim. I cannot imagine there is no vim when I am noting.
So I write this.

Requirements

  • vim python2 support: vim-gnote is based on python2, so your vim should be builded with python2 support.

  • markdown module of python

  • mail account

gmail account
mail account which supports imap protocol

Configuration

  • account settings

let g:gnote_gmail_username="your gmail username"
let g:gnote_gmail_password="your gmail password"

let g:gnote_mail_host="imap host of your mail" (default is imap.google.com)
let g:gnote_mail_port="imap port of your mail" (default is 993)
let g:gnote_mail_username="your mail username"
let g:gnote_mail_password="your mail password"
let g:gnote_auto_convert_markdown=<1 or 0>  (default is 0)
  • change the default mailbox name (default is 'gnote')

let g:gnote_gmail_mailbox="NOTES"

let g:gnote_mail_mailbox="NOTES"
  • keybord (you can also set the short cuts in your vim config), for example:
    map <leader>gn <esc>: call Gnote() <cr>
    

Config Example

  • assume you'd like to use google mail

    let g:gnote_mail_username = "xxx@gmail.com"
    let g:gnote_mail_password = "your google mail password"
    let g:gnote_mail_mailbox = "mailbox name you prefer"
    
  • assume you'd like to use qq mail

    let g:gnote_mail_host = "imap.exmail.qq.com"
    let g:gnote_mail_username = "xxxx@qq.com"
    let g:gnote_mail_password = "your qq mail password"
    let g:gnote_mail_mailbox = "mailbox name you prefer"
    
  • if you want to auto convert the markdown to html format, please:

    let g:gnote_auto_convert_markdown = 1
    
  • other email
    just take above examples as reference, the imap settings can be found at the related official website

Issue

cannot be used when using two-step verification for your google email. please set a special password for this plugin, here are the step

TODO

  • [√] markdown support
  • attchment support

vim:tw=78:ts=8:ft=help:norl:noet:fen:fdl=0