Q:

vim - how to keep cursor position while copying text

I am (having to) using gvim in windows. I was used to the linux environment where when I select text using mouse the cursor position wont change. Now , with gvim in windows,
My problem is something like this -

while I am editing in line 6
and when I am having to copy "hellovim" from line 3
and when I click with mouse on "hellovim" to copy it
then the cursor gets moved to "hellovim" on line 3
where as I would like the cursor to stay on line 6

How can I do this

A:

First of all, using the mouse to select text is against the philosophy of Vim, and prevents you from becoming really productive with the editor. But if you "have to" use (G)Vim against your choice, that's fine, Vim can accommodate you:
The key is marks. Some are automatic, for example the `. command takes you back to the last edit position.
If you used a jump command (like 3G) to navigate to the other position,  `` takes you back to the previous jump position. The Ctrl-O command does the same, but can also take you further back.
You can also manually set (ma) and go back (`a) to jumps; like registers, Vim has many (a-z) of them.

