Sunday, August 5, 2012

Re: Compiling options and their meaning

On 05/08/12 12:01, statquant2 wrote:
> Hello,
> I would like to build my vim but I cannot find a description/explanation of
> all the options (like --with-features=huge)
> Do you know such a list or tutorial showing most of them ?
>
> Cheers
>

Well, --with-features=huge means that you want to compile with Huge
features, i.e. everything that is listed with any of T S N B or H under
":help +feature-list" where you'll also see which features it's
_possible_ to enable or disable. OTOH, ":help feature-list" (without the
+ sign) gives a slightly different list of the features that has() can
test. Some of the differences are OS-dependent (for instance,
has("unix") will never be true on a non-Cygwin Vim running on Windows),
others may be environment-dependant (for instance, on Unix, a single
executable may run with has("gui_running") true or false depending on
whether it was started as a GUI or a console application), etc.

About _how_ to enable or disable these +features on Unix-like systems,
check the src/Makefile in the Vim source.

Features can also be selected by editing src/feature.h but don't do that
unless you're sure that (a) you'll still have a working Vim, and (b) you
can't do the same by means of configure options. I use it to set
-tag_old_static +xterm_save

See also http://users.skynet.be/antoine.mechelynck/vim/compunix.htm
where you'll see (among others) how I set my compile-time options when
compiling Vim on Linux. The part of that page about getting the source
and patching it is obsolete.


Best regards,
Tony.
--
Incest, n.:
Sibling revelry.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: