4 ms·
Of course it only works for non-terminal vim. Someone may make it work on Mac though by leveraging pb{copy,paste} in some clever way (can't remember the X11 equ
by lloeki 14y ago
Of course it only works for non-terminal vim. Someone may make it work on Mac though by leveraging pb{copy,paste} in some clever way (can't remember the X11 equivalent ATM)
- natedub 14y agoIt can work in terminal vim, too. 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.
- lloeki 14y agoI use OSX default vim. That might explain things. I'll try brew install macvim --override-system-vim to see if things improve. EDIT: it works.
- mhd 14y agoYes, it's the "+clipboard" option (as shown by :version). If you weren't doing macports (or brew) already, the downloadable MacVIM version does include a "Vim" binary that's usable on the commandline. Somewhere in /Applications/MacVIM.app/... (can't check at work). Just symlinking or simply setting `alias vim='<path_to_binary>` works perfectly. [MacVim]: http://code.google.com/p/macvim/ http://code.google.com/p/macvim/
- threedaymonk 14y agoThe X11 equivalents are: pbcopy = xsel -bi pbpaste = xsel -b