Vim paste in command mode - the power of CTRL-R
Use CTRL-R " when entering a command in command mode to paste the current paste buffer contents. Substitute " for a buffer name, % for current filename, / for last search term, + for the X clipboard or a host of other substitutions.
CTRL-R also works in insert mode, no more skipping back to normal mode to paste!
Check out the vim documentation for CTRL-R -http://vimdoc.sourceforge.net/htmldoc/insert.html#i_CTRL-R
Written by Julian Churchill
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Related Tags
#vim
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#