/vim-pastery

Pastery - vim plugin

Primary LanguageVimLOtherNOASSERTION

Vim-Pastery

Just a plugin for Pastery. Inspired by vim-gist.

This is the working version.

# Developed and tested on:
Vim 7.4

Getting started

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()

Set api key

To write api key for post a snippet to own account run command in vim:

:PasteryApiKey

Post snippet

You able to post the snippet without an api key, with a command below:

:PasteryPost

Check your vim cmdline for url of the snippet!

Setup

Add to your ~/.vimrc:

nnoremap <leader>pas :PasteryPost<cr>

Help

Check out the vim help:

:h vim-pastery

Contributing

Feel free to send a pull request 😝!

TODO

  • open snippet in browser after upload
  • pull snippets list
  • use filename as snippet name