https://github.com/roman-kiselenko/vim-pastery
Pastery - vim plugin
https://github.com/roman-kiselenko/vim-pastery
Last synced: 5 months ago
JSON representation
Pastery - vim plugin
- Host: GitHub
- URL: https://github.com/roman-kiselenko/vim-pastery
- Owner: roman-kiselenko
- License: other
- Created: 2015-12-11T19:22:02.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-11T20:05:43.000Z (over 10 years ago)
- Last Synced: 2025-01-31T19:04:23.446Z (over 1 year ago)
- Language: VimL
- Size: 3.91 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Vim-Pastery ##
Just a plugin for [Pastery](https://www.pastery.net/).
Inspired by [vim-gist](https://github.com/mattn/gist-vim).
This is the working version.
```
# Developed and tested on:
Vim 7.4
```
## Getting started
Add to [Plug](https://github.com/junegunn/vim-plug) package manager or any other:
```vim
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:
```vim
:PasteryApiKey
```
## Post snippet
You able to post the snippet without an api key, with a command below:
```vim
:PasteryPost
```
Check your vim `cmdline` for url of the snippet!
## Setup
Add to your `~/.vimrc`:
```vim
nnoremap pas :PasteryPost
```
## Help
Check out the vim help:
```vim
:h vim-pastery
```
## Contributing
Feel free to send a pull request :stuck_out_tongue_closed_eyes:!
## TODO
* open snippet in browser after upload
* pull snippets list
* use filename as snippet name