Created attachment 392248 [details, diff] A patch to add --with-lua-prefix The configure script of Vim searches Lua's header file from /usr/include by default. So, on a prefixed environment, header file cannot be found and Lua support is disabled. The problem can be confirmed by following: USE="lua" emerge vim vim --version | grep lua #this returns -lua, not +lua Adding --with-lua-prefix="$EPREFIX/usr" remedies the problem. A patch to ebuild is attached.
Thanks, I applied a similar patch