Resolve issue #2289: [vim] Cursor positioning after clicking

This is a fix to Issue #2289. Can tests be added for this issue?