Just a plugin for Pastery. Inspired by vim-gist.
This is the working version.
# Developed and tested on:
Vim 7.4
Add to Plug package manager or any other:
call plug#begin('~/.vim/plugged')
" Make sure you use single quotes
Plug 'mattn/webapi-vim'
Plug 'fishbullet/vim-pastery'
call plug#end()
To write api key for post a snippet to own account run command in vim:
:PasteryApiKey
You able to post the snippet without an api key, with a command below:
:PasteryPost
Check your vim cmdline
for url of the snippet!
Add to your ~/.vimrc
:
nnoremap <leader>pas :PasteryPost<cr>
Check out the vim help:
:h vim-pastery
Feel free to send a pull request ๐!
- open snippet in browser after upload
- pull snippets list
- use filename as snippet name