Vim mouse cursor moves iTerm position iMac

From miscellus

How to move the cursor in Vim using the mouse (Mac OSX)

Since I moved to an iMac running OSX, when using vim (via iTerm) I had a problem moving the cursor position n iTerm to the current position of the mouse cursor.

I changed my vimrc to add set mouse=an. This enabled moving the cursor position with the mouse, but unfortunately it broke the ability to use multiple copy buffers ( Ctrl C / Ctrl V ). That was too much to lose for easy cursor movement.

The solution in the end was to remove the set mouse command completely and instead use: alt + left-mouse-click which moves the iTerm cursor to the same position as the mouse cursor.

See also