vim: fix dynamic linking to Homebrew's python

Closes #26695.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>