Clean from standard vim sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common Vim dependency sudo apt-get install liblua5.4-dev luajit2 libluajit2-5.1-2 python3.11-dev libperl-dev python3 libncurses5-dev Clean and prepare folders sudo rm -rf /usr/local/share/vim sudo rm /usr/bin/vim sudo mkdir /usr/include/lua5.2/include cd /usr/include/lua5.2/ cp l* include/ sudo ln -s /usr/lib/x86_64-linux-gnu/liblua5.2.so /usr/local/lib/liblua.so Download it and compile cd /usr/local/src/ git clone https://github.com/vim/vim cd vim/src make distclean ./configure --with-features=huge \ --enable-multibyte \ --enable-perlinterp=dynamic \ --enable-rubyinterp=dynamic \ --with-ruby-command=$(which ruby) \ --enable-largefile \ --disable-netbeans \ --enable-python3interp \ --with-python3-config-dir=/usr/lib/python3.11/config-3.11-x86_64-linux-gnu \ --enable-luainterp \ --with-luajit \ --enable-gui=auto \ --enable-fail-if-missing \ --enable-cscope make sudo make install