Skip to content

Instantly share code, notes, and snippets.

@dezza
Last active February 15, 2023 15:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dezza/097cb58f68d249e7963f776776069510 to your computer and use it in GitHub Desktop.
Save dezza/097cb58f68d249e7963f776776069510 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# WARNING: vim caches ./configure results ALWAYS run "make distclean" AFTER each OPTION added or DEPENDENCY INSTALLED!
# --with-features=big is the least for +termguicolors 24bit truecolor support
# --with-features=huge is needed for profiling
# http://www.drchip.org/astronaut/vim/vimfeat.html
# debian dependencies
apt-get install -y gcc libncurses-dev build-essential make python3 libpython3-dev xorg-dev
git pull
version=$(git describe --abbrev=0 --tags)
version=${version:1}
echo $version
make clean distclean
# for lua to work (in debian):
sudo apt install libluajit-5.1-dev liblua50-dev luajit
sudo ln -s /usr/include/lua50 /usr/include/lua
sudo ln -s /usr/include/luajit-2.1 /usr/include/luajit
./configure --with-features=big --with-x --disable-darwin --disable-xsmp --disable-xsmp-interact --disable-netbeans --disable-gtktest --disable-icon-cache-update --disable-desktop-database-update --disable-acl --disable-gpm --disable-sysmouse --disable-nls --enable-multibyte --enable-rubyinterp=yes --enable-python3interp=yes --with-python3-config-dir=/usr/lib/python3.8/config-3.8-x86_64-linux-gnu/ --enable-perlinterp=yes --enable-luainterp=yes --with-luajit --enable-cscope --enable-terminal --prefix=/usr/local
make
sudo checkinstall --docdir='/usr/local/share/vim/vim90/doc' --showinstall=no --pkgname=vim --pkgversion=$version -y
sudo apt-mark hold vim
sudo apt-remove vim-common vim-runtime vim-doc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment