Tip 61: Replace a Visual Selection with a Register
Return to the top: <<Practical Vim>>
When we use the p
command in Visual mode, Vim replaces the selection with the contents of the specified register.
References
# If you open the file in vim, # then you can \"ayy@a the next line to execute the vim command: :h v_p