How can I paste something at the end of the line in VIM?
Solution 1:
There is if you create a mapping, e.g..
:nmap , $p
Then you can type , to paste at the end of the line.
Remember, one way or another, you'd have to tell Vim that you want the text at the end of the line, and not where the cursor currently is; by default, Vim has no single key-stroke for this.
Solution 2:
A couple more keystrokes, but will allow you to position the text or add other content before pasting:
a
<position the cursor where you would like to paste the text>
Ctrl+r"
Explanation: Ctrl+r inserts the contents of a register. " is the unnamed register, containing the text of the last delete or yank.
I find myself doing this a lot when pasting comments. :)