cd ~/ echo 'Getting latest source for vim' git clone https://github.com/vim/vim.git --depth 1 cd vim sudo rm -rf build mkdir build make clean distclean echo 'make sure stuff for pyenv is available' sudo apt update sudo apt install build-essential libssl-dev zlib1g-dev \ libbz2-dev libreadline-dev libsqlite3-dev curl \ libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev \ libx11-dev libxtst-dev echo 'Setting configure for vim' echo 'Press enter to continue' read ./configure --with-features=huge \ --enable-shared \ --enable-multibyte \ --enable-rubyinterp=yes \ --enable-python3interp=yes \ --with-python3-command=$HOME/.pyenv/versions/3.11.3/bin/python3 \ --with-python3-config-dir=$HOME/.pyenv/versions/3.11.3/lib/python3.11/config-3.11-x86_64-linux-gnu \ --enable-perlinterp=yes \ --enable-luainterp=yes \ --enable-gui=gtk2 \ --enable-cscope \ --prefix=$HOME/vim/build echo 'Build and run' make -j make install echo 'Update path' echo "PATH=$HOME/vim/build/:\$PATH"