News for hackers. Stuff that matters.
Re:Advanced Vim Registers by LauriL on Wednesday January 09, 2013 @01:18AM (#5030468)
A useful article for at least intermediate VIM users.

Regarding the system clipboard register: in OS X 10.8 the `"+` register no longer works. Has anyone found a way to get it working again?

Re:Advanced Vim Registers by bilalq on Wednesday January 09, 2013 @01:36AM (#5030505)
It works fine for me. Seems like whatever install of Vim you have doesn't support the clipboard. Run "vim --version | grep clipboard" and see if you get a + or - for the clipboard.

If you want a quick fix for getting it working again, make sure /usr/local/bin is early on in your PATH and run "brew install macvim --override-system-vim"

Re:Advanced Vim Registers by RegEx on Wednesday January 09, 2013 @05:26AM (#5030944)
I visually highlight and call pbcopy on OS X and xclip on ubuntu. It has the annoying side effect of deleting the text, but a simple u fixes that.

So, highlight in visual mode, go into command mode, and !pbcopy

Re:Advanced Vim Registers by Lio on Wednesday January 09, 2013 @09:01AM (#5031469)
If you use Vim within tmux (on Mac OSX) the clipboard can become 'detached'. To get it working again I use Chris Johnsen's excellent little command.

https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard

You can install using 'brew install reattach-to-user-namespace'

You need to config tmux:- set-option -g default-command "reattach-to-user-namespace -l zsh"

then set vim to use to use the unnamed clipboard by default.

Re:Advanced Vim Registers by tyler-dodge on Wednesday January 09, 2013 @02:08PM (#5032840)
My version didn't have it builtin so I use fake clip https://github.com/kana/vim-fakeclip