You should remove all vim packages before the following. lua-devel package does not exist in 8.0.1905
yum remove vim
yum groupinstall 'Development tools'
yum install -y ncurses ncurses-devel lua-devel.x86_64
git clone https://github.com/vim/vim.git cd vim/src ./configure --prefix=/usr --with-features=huge --enable-rubyinterp --enable-pythoninterp --enable-luainterp make make install
make distclean