rewrite of https://github.com/mrtazz/simplenote.vim in pure vimscript.