Tony Schneider

  • Archive
  • RSS

Copying from terminal Vim

So, I have almost completely made the switch from MacVim to terminal vim. It hasn’t been easy giving up a lot of the niceties that come for free with MacVim. But, there was one thing in particular that really bothered me — copying code from vim and pasting it somewhere else.

Well, never fear. Vim’s “*” register maps to pbcopy (at least on OSX)

So, next time you want to show that kickass piece of code to your friends, just do the following after making a selection:

“*y

You now have that awesome bit of code in your clipboard! Show it off with pride!

    • #vim
    • #unix
    • #so that I remember
  • 1 year ago
  • 1
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

About

Avatar Hello there,

I'm a recent graduate of The Ohio State University. While attending OSU, I studied Computer Science & Engineering and minored in Studio Art.

I'm currently a software developer working for Neo. I'm an avid music listener, movie watcher, concert goer, and traveler.

You've stumbled upon a bag of my favorite links, thoughts, lessons, and opinions. I hope you enjoy.

Pages

  • Year End Lists

Me, Elsewhere

  • tonywok on Forrst
  • @tonywok on Twitter
  • tsnydermtg on Last.fm
  • My Skype Info
  • tonywok on github

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Mobile
Effector Theme by Pixel Union