Last Updated: February 25, 2016
· usharf

Pasting the content of a vim register into the command line

I sometimes need to execute an external command from within Vim, using some text I've copied (yanked).

To paste the content of the default register, I use Ctrl-R + ".

So, for example:

:!bower install [Ctrl-R + "]

Will run 'bower install', with a url pasted in at the end.