-
Notifications
You must be signed in to change notification settings - Fork 1
/
vim_install.sh
executable file
·50 lines (43 loc) · 1.85 KB
/
vim_install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# **************************************************************************** #
# LE - / #
# / #
# vim_install.sh .:: .:/ . .:: #
# +:+:+ +: +: +:+:+ #
# By: tris <[email protected]> +:+ +: +: +:+ #
# #+# #+ #+ #+# #
# Created: 2020/02/16 20:09:29 by tris #+# ## ## #+# #
# Updated: 2020/02/16 20:10:14 by tris ### #+. /#+ ###.fr #
# / #
# / #
# **************************************************************************** #
#!/bin/bash
sudo apt install libncurses-dev libgtk2.0-dev libatk1.0-dev \
libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev \
python3-dev ruby-dev lua5.1 liblua5.1-dev libperl-dev git
VIMSOURCE=/tmp/vim_install
[ -d $VIMSOURCE ] || git clone https://github.com/vim/vim.git $VIMSOURCE
cd $VIMSOURCE/src
make distclean
cd $VIMSOURCE
PYTHONCONFIG=$(find /usr/lib/python* -name "config-[0-9].*-linux-gnu" | sort -r | sed -n 1p)
./configure \
--enable-multibyte \
--enable-perlinterp=dynamic \
--enable-rubyinterp=dynamic \
--with-ruby-command=/usr/bin/ruby \
--enable-python3interp \
--with-python3-config-dir="$PYTHONCONFIG"
--enable-luainterp \
--with-luajit \
--enable-cscope \
--enable-gui=auto \
--with-features=huge \
--enable-gtk-2-check \
--enable-gnome-check \
--with-x \
--enable-fontset \
--enable-largefile \
--disable-netbeans \
--enable-fail-if-missing
make
sudo make install