Need help with vim-bracketed-paste?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

ConradIrwin
443 Stars 26 Forks MIT License 38 Commits 13 Opened issues

Description

Handles bracketed-paste-mode in vim (aka. automatic `:set paste`)

Services available

!
?

Need anything else?

Contributors list

# 25,230
Ruby
Rails
Gin
ESLint
8 commits
# 222,766
C
udp
socket
Windows
2 commits
# 382,512
Shell
Python
C++
1 commit
# 47,138
Sass
Symfony
webrtc
bittorr...
1 commit
# 67,282
Ruby
Rails
Less
tagging
1 commit
# 625,583
Ruby
HTML
puppet
1 commit
# 105,606
pandas
Ruby
C++
audio-s...
1 commit
# 636,645
JavaScr...
1 commit
# 208,517
Zsh
Bash
friendl...
powerli...
1 commit
# 235,117
Shell
tmux
Vim
1 commit
# 269,921
Shell
Java
CSS
otr
1 commit
# 80,419
Firefox
Chrome
Django
keyboar...
1 commit
# 55,763
Lisp
Rails
Racket
arc
1 commit
# 253,432
yield
rust-la...
nix
mozilla...
1 commit

vim-bracketed-paste enables transparent pasting into vim. (i.e. no more

:set paste!
)

Installation

I recommend using pathogen. Once you have installed pathogen:

cd ~/.vim/bundle
git clone https://github.com/ConradIrwin/vim-bracketed-paste

Otherwise just copy-paste everything from plugin/bracketed-paste.vim into your

~/.vimrc
.

Usage

You need to be using a modern xterm-compatible terminal emulator that supports bracketed paste mode. xterm, urxvt, iTerm2, gnome-terminal (and other terminals using libvte) are known to work.

Then whenever you are in the insert mode and paste into your terminal emulator using

command+v
,
shift+insert
,
ctrl+shift+v
or
middle-click
, vim will automatically
:set paste
for you.

Credit

The code for this plugin was taken from Chis Page's answer to a StackOverflow question, I just packaged it.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.