Ⅰ. 插件描述
Nopaste interface toⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/nopaste-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/nopaste-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/nopaste-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/nopaste.vim
Ⅳ. 文档说明
This is a simple interface to http://www.rafb.net/ which need vim's python interface as a dependency. Edit a file, then issue the command
:Paste
and it will post the whole file on rafb. The link will come in your clipboard(* and +) as default, so you can post it with Ctrl + v or middle mouse button somewhere on IRC, browsers, etc. I also have that map in my ~/.vimrc
vnoremap <leader>paste y:call Paste('<C-R>"')<cr><cr>
with which you can paste just a snippet from the file. Just select the block/text in VISUAL mode and hit <leader>paste this will copy the text to the site, note <leader> is as default in vim.