Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

babun: copy/paste from windows clipboard into vim?

right-clicking while at the prompt dumps the contents of the clipboard into the shell, but in vim it just switches to VISUAL mode and does nothing. How do I workaround this?

https://github.com/babun/babun/issues/97

like image 780
ihadanny Avatar asked Jun 17 '15 06:06

ihadanny


Video Answer


3 Answers

While in vim, try tu use shift + Mouse right click

like image 72
kasi Avatar answered Oct 13 '22 03:10

kasi


Running the following command worked for me. Essentially just adding to your vimrc.

echo "set mouse-=a" >> ~/.vimrc
like image 44
LukeGeneva Avatar answered Oct 13 '22 01:10

LukeGeneva


Adding to the various other solutions: if you're getting the --visual-- mode when right-clicking into vim (babun) when trying to paste from the clipboard, you may try to paste by using the following (in "esc" edit mode): "*p

That is: keep holding shift down to type double-quote (") followed by *, then type a lower-case p

like image 5
michael Avatar answered Oct 13 '22 03:10

michael