Note: This gist is now part of VimBits plugin.
The HighlightedYank plugin is a handy tool for ensuring that the text you intended to yank is actually yanked. This can help prevent surprises when you paste, especially if you accidentally hit the wrong keys.
Vim already has enough scaffolding now to implement this using a short snippet. Put the following code in your .vimrc
.