Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/coldfix/paster.vim
VIM tool to upload selected content to public pastebins
https://github.com/coldfix/paster.vim
Last synced: 25 days ago
JSON representation
VIM tool to upload selected content to public pastebins
- Host: GitHub
- URL: https://github.com/coldfix/paster.vim
- Owner: coldfix
- License: other
- Created: 2012-12-21T03:34:45.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2017-11-27T18:47:34.000Z (almost 7 years ago)
- Last Synced: 2023-03-24T13:30:20.807Z (over 1 year ago)
- Language: Vim script
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: COPYING
Awesome Lists containing this project
README
## pastebin.vim
### Description
VIM plugin for pasting selected content to pastebins.
### Features
The plugin is invoked via the key binding `F8`.
It behaves differently depending on the current mode:* normal mode: paste the entire file
* visual mode: paste the selected content
* visual block|line mode: paste selected content### Installation
You can install this plugin using [vim-pathogen](https://github.com/tpope/vim-pathogen/):
```bash
cd ~/.vim/bundle
git clone ssh://[email protected]/coldfix/paster.vim
```Alternatively, you can simply drop everything `~/.vim/` directory.
### Configuration
User data can be configured via `pastebin#config()`.
The function `g:InstallPasterConfig` will be called automatically when the autoload file is loaded.
So, for use with `pastebin.com`, you could add the following to your `.vimrc`:```vim
function! g:InstallPasterConfig()
call pastebin#config('pastebin.com', { 'api_dev_key': '4ca886bc1ac78c4d20d8cb0864a0b0c8' })
endfunction
```Of course, you'd have to substitute your personal key as handed out by the site.