In iterm2, the vim command is used to open the file. How can this vim support mouse positioning?

  question, vim

Just click a character and the cursor will move to the position of the character.
When I first started using vim, I know that macvim supports mouse positioning by default.
But not in iterm2, is there no setting?

:set mouse=a
Can be specific: help mouse
However, since vim has been used, let’s get into the habit of not using the mouse.