1 | initial version |
To stop the cursor from moving while yanking to a mark in Vim, use the following command:
:nohlsearch
This command will turn off search highlighting, which will prevent the cursor from moving to the next match. You can use this command before yanking to a mark, and then turn on search highlighting again by using:
:set hlsearch