News for hackers. Stuff that matters.
Re:Textmate to VIM by crazydiamond on Sunday November 11, 2012 @03:29AM (#4769064)
This is nice, except that every cut gets added to the clipboard. Including deleting an individual character. Deleting/cleaning up text ... it all goes into the clipboard. Soon my clipboard is full of junk.

I'd have liked only yanked stuff going onto the clipboard, not deleted stuff.

Re:Textmate to VIM by johncoltrane on Tuesday November 13, 2012 @05:03AM (#4777258)

    "_
is the "blackhole" register.

Add these lines to your ~/.vimrc:

    nnoremap <leader>d "_d
    vnoremap <leader>d "_d
and enjoy "real" deletion.