Ⅰ. 插件描述
Vim plugin for pasting content to http://paste.ubuntu.com/Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'pegasuswang/vim-ubuntu-pastebin'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'pegasuswang/vim-ubuntu-pastebin'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'pegasuswang/vim-ubuntu-pastebin'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/pegasuswang/vim-ubuntu-pastebin
Ⅳ. 文档说明
# vim-ubuntu-pastebin
Usage:
Paste your current vim bufffer content to http://paste.ubuntu.com/, support many filetypes, support vim compiled with python or python3. Just in your vim and execute :Pastebin, then vim will print pasted url, you can open it in your browser(automaticlly when use desktop). Note this plugin shares your file public, if your file is private you may use gist.github or scp command.
Post current buffer to http://paste.ubuntu.com/
:Pastebin
Installation
Required vim compiled with +python or +python3.
- pip install requests # pip3 install requests
Use your plugin manager of choice.
git clone https://github.com/PegasusWang/vim-ubuntu-pastebin ~/.vim/bundle/vim-ubuntu-pastebin
- Add
Bundle 'https://github.com/PegasusWang/vim-ubuntu-pastebin'to .vimrc - Run
:BundleInstall
- Add
- Add
NeoBundle 'https://github.com/PegasusWang/vim-ubuntu-pastebin'to .vimrc - Run
:NeoBundleInstall
- Add
- Add
Plug 'https://github.com/PegasusWang/vim-ubuntu-pastebin'to .vimrc - Run
:PlugInstall
- Add
Author
- PegasusWang
If you want to learn write vim plugin use python, see this youtube radio Writing Vim plugins with Python
vim-plugin-starter-kit
中文简介:
如果你和我一样记性不好老是记不住scp命令怎么使的,可以试试直接安装这个插件之后在vim里执行 :Pastebin ,代码会自动贴到http://paste.ubuntu.com然后自动打开浏览器。
如果你对怎么用python写vim插件有兴趣可以参考以上油管视频链接或者我的博客。