Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 28 down vote accepted

The command:

vim --version

This is pretty standard for all unix executables.

share|improve this answer
It should be mentioned that this command should be entered in the terminal, not inside vim. And you should have vim added to your environment variables if you are on a Windows. – adi Nov 15 '15 at 17:06

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

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

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

share|improve this answer

You can also just open a blank VIM document by typing vi or vim in your terminal. The welcome screen will state your version as well as other information.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .