Skip to content

enricobacis/paste.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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>

About

Paste from clipboard to vim at full speed.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published