Hacker News new | ask | show | jobs
by bingaman 5514 days ago
On a mac, you can use :r !pbpaste

If you're ssh'd somewhere it's a different story. I've seen some things about sharing clipboards across shells, but I've never bothered to set it up.

Also, copy-pasta makes for bad code.

1 comments

Thanks for the tip! I also learned you can do:

:a! <paste like normal> <C-c>

and that will paste with properly formatted text.