Paste from clipboard to vim at full speed.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
plugin
LICENSE
README.md

README.md

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>