Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 am interested in knowing which options are used to compile vim in the package "vim" as I am trying to compile vim from source on another system, not running Debian/Ubuntu, and would like it to work in a similar way.

share|improve this question
up vote 10 down vote accepted

Grab the source package

apt-get source vim

That'll download the source for the package in your current dir. Look at debian/rules, which is a makefile used when creating all the different vim packages. It may be hard to read, but the information you seek should be in there somewhere.

You can also download the source package from (scroll down) if you can't log into a debian/ubuntu box to run apt-get.

share|improve this answer
Thankfully I can read that, so that's great thanks. – Stephen Paulger Feb 10 '11 at 17:53

vim --version will list all the options in ubuntu.

share|improve this answer
That's very neat. Thanks. – Stephen Paulger Mar 14 '11 at 16:35
It would be very nice if that was consistent across every application. – James Mar 17 '11 at 15:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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