how can I check which version of vim I have installed?

20

5

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.

Stew

Posted 2010-06-04T16:23:33.080

Reputation: 990

Answers

29

The command:

vim --version

This is pretty standard for all unix executables.

ghoppe

Posted 2010-06-04T16:23:33.080

Reputation: 6 124

1It 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. – multigoodverse – 2015-11-15T17:06:03.287

19

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

:version

akira

Posted 2010-06-04T16:23:33.080

Reputation: 52 754

aha, this is also good to know--thanks! – Stew – 2010-06-04T17:09:57.353

3

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

Martin Hilton

Posted 2010-06-04T16:23:33.080

Reputation: 1 386

1

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.

German

Posted 2010-06-04T16:23:33.080

Reputation: 111