I'm running Mac OS X Snow Leopard. How can I check which version of vim I have installed?

Ideally I'd like to know a general solution for checking software versions via the command line.

link|improve this question

75% accept rate
feedback

3 Answers

up vote 6 down vote accepted

The command:

vim --version

This is pretty standard for all unix executables.

link|improve this answer
feedback

or, just if you run vim already and want to know what you are in right now:

:version
link|improve this answer
aha, this is also good to know--thanks! – Stew Jun 4 '10 at 17:09
feedback

In a terminal run vim --version ther version number is in the top line of output.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.