paste.vim


Ⅰ. 插件描述

Paste from clipboard to vim at full speed.

Ⅱ. 基本信息

创建日期:  2017-12-26
使用用户:  6
Github星:  25
插件作者:  Enrico Bacis

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'enricobacis/paste-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'enricobacis/paste-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'enricobacis/paste-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/enricobacis/paste.vim

Ⅳ. 文档说明

# paste.vim

Paste (or copy) from clipboard at full speed using pbpaste, xclip or xsel.

Installation

Use your plugin manager of choice.

  • Vundle

    • Add Bundle 'enricobacis/paste.vim' to .vimrc
    • Run :BundleInstall
  • NeoBundle

    • Add NeoBundle 'enricobacis/paste.vim' to .vimrc
    • Run :NeoBundleInstall
  • vim-plug

    • Add Plug 'enricobacis/paste.vim' to .vimrc
    • Run :PlugInstall

Usage

After you have installed the plugin you can use the default mapping

<leader>v

to paste the current content of the clipboard at cursor position.

This is way faster than pasting in normal mode and paste mode.

For symmetry, this plugin also provides the visual mode mapping

<leader>y

which copies the current selection to the system clipboard.

Configuration

You can disable the default mappings and configure your own:

let g:paste_no_mappings = 1
nnoremap <shortcut> :Paste<CR>
vnoremap <shortcut> :Copy<CR>

添加新评论