Forked from Skrip42/install-vim-8-with-python-ruby-lua-opensuse.sh
Created
November 11, 2019 16:15
-
-
Save ur4ltz/55b44dc657868c968fb07f6a7df06659 to your computer and use it in GitHub Desktop.
Install Vim 8 with Python, Python 3, Ruby (2.5) and Lua support on openSuse
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# remove current vim | |
sudo zypper rm vim vim-runtime vim-gnome vim-tiny vim-gui-common | |
# removes current link for vim | |
sudo rm -rf /usr/local/share/vim /usr/bin/vim | |
# installs everything needed to make/configure/build Vim | |
sudo zypper in \ | |
lua51-luajit \ | |
lua51-luajit-devel \ | |
lua51-devel \ | |
python-devel \ | |
python3-devel \ | |
ruby2.6 \ | |
ruby2.6-devel \ | |
ncurses5-devel \ | |
atk-devel \ | |
xorg-X11-devel \ | |
libXpm-devel \ | |
libXt-devel | |
#Optional: so vim can be uninstalled again via `dpkg -r vim` | |
#sudo apt-get -y install checkinstall | |
# clones vim repository so we can build it from scratch | |
cd ~ | |
git clone https://github.com/vim/vim | |
cd vim | |
git pull && git fetch | |
# In case Vim was already installed. This can throw an error if not installed, | |
# it's the nromal behaviour. That's no need to worry about it | |
cd src | |
sudo make distclean | |
cd .. | |
# update to use the correct python 2.7/3.x config path also change 'YOUR NAME' to | |
# your real name | |
sudo ./configure \ | |
--enable-multibyte \ | |
--enable-perlinterp=dynamic \ | |
--enable-rubyinterp=dynamic \ | |
--with-ruby-command=/usr/bin/ruby \ | |
--enable-pythoninterp=dynamic \ | |
--with-python-config-dir=/usr/bin/python \ | |
--enable-python3interp \ | |
--with-python3-config-dir=/usr/bin/python3 \ | |
--enable-luainterp \ | |
--with-luajit \ | |
--enable-cscope \ | |
--enable-gui=auto \ | |
--with-features=huge \ | |
--with-x \ | |
--enable-fontset \ | |
--enable-largefile \ | |
--disable-netbeans \ | |
--with-compiledby="skrip <[email protected]>" \ | |
--enable-fail-if-missing | |
# this this is the compilation step. It should also create the symlink of the binary | |
# one /usr/bin folder | |
make && sudo make install > viminstal.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment