Skip to content

A vim wrapper of [zlin/wgetpaste] focusing on making pastebin service (bpaste, codepad, dpaste, gist) more convenient.

License

Notifications You must be signed in to change notification settings

Freed-Wu/wgetpaste.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wgetpaste.vim

A vim wrapper of zlin/wgetpaste focusing on making pastebin service (bpaste, codepad, dpaste, gist) more convenient. 中文

Feature

Select appropriate language type and service automatically according vim syntax and language types each service supporting. (e.g. If you want to paste a python file to pastebin, you only Wgetpaste! in your vim. Not need to type wgetpaste -l Python -s bpaste /the/path/of/file in your shell.)

Usage

[range]Wgetpaste[!]

Dependence

  1. A distribution of vim. Such as vim/vim.
  2. zlin/wgetpaste.

According to https://github.com/zlin/wgetpaste/blob/master/wgetpaste#L2-L3 or

cat `which wgetpaste`|sed -n 2,3p

wgetpaste is

A Script that automates pasting to a number of pastebin services relying only on bash, sed, coreutils (mktemp/sort/tr/wc/whoami/tee) and wget

Install

Package manager

Such as Shougo/dein.vim, Add the following code to your vimrc.

call dein#add('Freed-Wu/wgetpaste.vim')

Then type the code in the command line of vim:

call dein#install()

Or the following, need wsdjeg/dein-ui.vim.

SPInstall

Or the following, need haya14busa/dein-command.vim.

Dein install

Manual

Download the package first.

git clone https://github.com/Freed-Wu/wgetpaste.vim /path/to/save/this/package

Add the following code to your vimrc.

set runtimepath+=/path/to/save/this/package

Customize

See doc/wgetpaste.txt or type the code in the command line of vim:

help wgetpaste

and https://github.com/zlin/wgetpaste/blob/master/wgetpaste#L419-L433 or

wgetpaste --help

FAQ

See more at Issues.

Thanks

About

A vim wrapper of [zlin/wgetpaste] focusing on making pastebin service (bpaste, codepad, dpaste, gist) more convenient.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published