Friday, April 13, 2012

Copy and paste from vim

I've added the following to my .vimrc:

It allows me to highlight text in a file and then hit '\c' to copy the highlighted text to my X11 clipboard in Ubuntu.

It also allows me to just hit '\p' to paste from the X11 clipboard to the vim buffer.

My .vimrc in OSX has the following to provide the same functionality when I'm on the Mac:

No comments:

Post a Comment