The #NetBSD documentation on vi is pretty good. You could learn it from this.
https://www.netbsd.org/docs/guide/en/chap-edit.html#chap-edit-configuring-vi-exrc
It's not full Vim, though the #vi in the BSDs is still a great editor. I tend to go for full #Vim, but I do switch between the two.