Ever tried to paste something you just copied from your browser or from anywhere else on your system onto vim? As long as you still have a mouse with a middle button, all is well, but what happens when you are on a laptop or are using a smart mouse of some sort? Depending on your system configuration that could become a very challenging task.
This article
explains the issues and solutions to this
in great detail.
Here I am only interested in one solution,
i.e. how to paste onto my vim document what
I just copied using the good old CTRL+c
command.
In short, one has to use the +
register,
which points to the system clipboard register
(this should work on all unix-like systems),
with this vim command: "+p
.
You are welcome. :-P