To compile vim with a specific list of features:
- read the feature list to figure out what you want
- vi src/feature.h and verify you didn't break feature dependencies
- vi src/Makefile and enable / disable the CONF_OPT_* features
- make config (or make reconfig if the first compile failed)
For example, if your vim gets into stupid wars with X11 and therefore burns a lot of CPU on your laptop,
you can now build a nice small non-X11 enabled vim.