What was the first version of macOS to ship with the Vim text editor?
vim has been included with OS X since version 10.3.0 (Panther); vi has been included from the very first version, 10.0 (Cheetah).

Apple has an excellent Open Source repository - http://opensource.apple.com - where they keep an archive of all the software that they've used in the development of their operating systems.  Looking at details of the 10.3 Project, you will see that vim made its first appearance.