You can also yank from Vim to the system clipboard with
"+y
Took me a year or so to learn that one "+y
Took me a year or so to learn that one set clipboard+=unnamedI've been using the "+ register intensively. Your tip will save me from quite a lot of keystrokes in the future.
:help clipboard
Also another AWESOME tip , if you set an "a" among your guioptions, your visual selects and mouse selects automatically get copied to the * register. : help quotestar
I realize that X environments mainly do this already, but not the visual select. Most of my editing is through SSH so I don't get to use the gui features much. The only time I use gvim is in windows, so it was pretty revolutionary for me.I believe the special + register for the system clipboard is enabled by a compile option, but that may not be entirely accurate. I have Vim 7.3 installed via Macports and it works for me.
[MacVim]: http://code.google.com/p/macvim/
brew install macvim --override-system-vim
to see if things improve.EDIT: it works.
pbcopy = xsel -bi
pbpaste = xsel -b