0

I want to improve Gentoo ebuild.

I tried :helpgrep statusline.

In the future, how can I get all possible build flags about features in :version?

5
  • Why would you want to disable support for the statusline? How would this improve Gentoo ebuild?
    – filbranden
    Jun 12 at 23:10
  • If I recall correctly, statusline is not an option, that can be disabled at compile time. So what exactly are you trying to achieve here? Jun 13 at 15:05
  • @filbranden I want to disable features that I do not use, for faster compilation, more security, faster startup, less ram usage. Of course I want to disable statusline not for all, but by introducing USE flag. Jun 13 at 15:11
  • @ChristianBrabandt I trying to build Vim with features that I use, for performance. If we cannot disable +statusline - this is strange that we see it in :version. Jun 13 at 15:13
  • 1
    The minimal amount of time savings from faster compilation and speedup will be vastly less than the amount of time you've already spent on this :-) Jun 13 at 17:14
2

Vim features are not completely orthogonal, so not all of them are available as individual flags to enable/disable.

If you want a minimal build of Vim, you can use --with-features=tiny. I believe this will disable the statusline feature as well, together with many other features disabled to produce a minimal build.

This setting is already available in the Gentoo ebuild as a minimal use flag.

1
  • 3
    The features are defined in feature.h by the way; in this case, it's named FEAT_STL_OPT, and it's set with #ifdef FEAT_NORMAL #define FEAT_STL_OPT. It's never defined/set anywhere else. If the OP cares deeply about this, then they can probably just modify the feature.h file to remove this and that will work. No guarantees though; warranty voided, etc. There's just no option to set this directly because the number of people who want a "fully featured Vim but without a statusline" are probably very few. Jun 13 at 17:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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