Oh on linux you just run netstat -p but that won’t work on OS X. There is another path to take: lsof -i | grep LISTEN
Add colors to VI on OS X by adding the following to your ~/.vimrc