Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Vim installation

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.2-dev luajit libluajit-5.1 python3.7-dev ddddddpython-dev libperl-dev libncurses5-dev ruby-dev

if you want gVim add also this

sudo apt-get install libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-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/ /usr/local/lib/

Download it and compile

cd /usr/local/src/
git clone
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-pythoninterp=dynamic \
            --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu \
            --enable-python3interp \
            --with-python3-config-dir=/usr/lib/python3.7/config-3.7m-x86_64-linux-gnu \
            --enable-luainterp \
            --with-luajit \
            --enable-gui=auto \
            --enable-fail-if-missing \

sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment