https://github.com/freed-wu/wgetpaste.vim
A vim wrapper of [zlin/wgetpaste] focusing on making pastebin service (bpaste, codepad, dpaste, gist) more convenient.
https://github.com/freed-wu/wgetpaste.vim
vim vim-plugin wgetpaste
Last synced: about 1 year ago
JSON representation
A vim wrapper of [zlin/wgetpaste] focusing on making pastebin service (bpaste, codepad, dpaste, gist) more convenient.
- Host: GitHub
- URL: https://github.com/freed-wu/wgetpaste.vim
- Owner: Freed-Wu
- License: gpl-3.0
- Created: 2020-10-20T12:14:21.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-20T12:14:57.000Z (over 5 years ago)
- Last Synced: 2024-05-14T00:33:52.201Z (about 2 years ago)
- Topics: vim, vim-plugin, wgetpaste
- Language: Vim script
- Homepage:
- Size: 15.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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
-----
```{.vim}
[range]Wgetpaste[!]
```
Dependence
----------
1. A distribution of vim. Such as [vim/vim].
2. [zlin/wgetpaste].
According to
or
```{.sh}
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.
``` {.vim}
call dein#add('Freed-Wu/wgetpaste.vim')
```
Then type the code in the command line of vim:
``` {.vim}
call dein#install()
```
Or the following, need [wsdjeg/dein-ui.vim].
``` {.vim}
SPInstall
```
Or the following, need [haya14busa/dein-command.vim].
``` {.vim}
Dein install
```
### Manual
Download the package first.
``` {.zsh}
git clone https://github.com/Freed-Wu/wgetpaste.vim /path/to/save/this/package
```
Add the following code to your vimrc.
``` {.vim}
set runtimepath+=/path/to/save/this/package
```
Customize
---------
See [doc/wgetpaste.txt] or type the code in the command line of vim:
``` {.vim}
help wgetpaste
```
and or
```{.shell}
wgetpaste --help
```
FAQ
---
See more at [Issues].
Thanks
------
- [mattn/pastebin-vim] is a plugin providing support for pastebin.com.
- [kpron/vim-dpaste] is a plugin providing support for dpaste.
[中文]: https://zhuanlan.zhihu.com/p/228462641
[vim/vim]: https://github.com/vim/vim
[zlin/wgetpaste]: https://github.com/zlin/wgetpaste
[Shougo/dein.vim]: https://github.com/Shougo/dein.vim
[wsdjeg/dein-ui.vim]: https://github.com/wsdjeg/dein-ui.vim
[haya14busa/dein-command.vim]: https://github.com/haya14busa/dein-command.vim
[doc/wgetpaste.txt]: doc/wgetpaste.txt
[kpron/vim-dpaste]: https://github.com/kpron/vim-dpaste
[mattn/pastebin-vim]: https://github.com/mattn/pastebin-vim
[Issues]: https://github.com/Freed-Wu/wgetpaste.vim/issues