-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathvim-setup.sh
109 lines (103 loc) · 2.42 KB
/
vim-setup.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# for +lua +clipboard
sudo apt-get -y install vim-gtk
# or only +lua
#sudo apt-get -y install vim-nox
# install dein.vim and ka-vim-sinppets
if [ ! -d $HOME/.vim/dein ]; then
curl https://raw.githubusercontent.com/Shougo/dein.vim/master/bin/installer.sh | bash -s $HOME/.vim/dein
fi
# execute :call dein#install() in Vim command mode
git clone git://github.com/kaosf/ka-vim-snippets.git $HOME/.vim/ka-vim-snippets
# setup vimproc
cd $HOME/.vim/bundle/vimproc
make
# Install Python 3 "neovim" package
sudo apt-get -y install python3-pip
pip3 install --user neovim
## Build by myself
sudo apt-get -y install \
lua5.2 liblua5.2-dev luajit libluajit-5.1-2 libluajit-5.1-dev \
libperl-dev \
libpython-dev libpython3-dev \
ruby ruby-dev \
libx11-dev libxt-dev libgtk2.0-dev
mkdir -p $HOME/local/src
cd $HOME/local/src
if [ -d vim ]; then
cd vim
git fetch origin
else
git clone https://github.com/vim/vim
cd vim
fi
VERSION=`git tag -l | sort --version-sort | tail -1`
git checkout $VERSION
NAME=`git config user.name`
if [ $? != 0 -o -z $NAME ]; then
NAME=`whoami`
fi
EMAIL=`git config user.email`
if [ $? != 0 -o -z $EMAIL ]; then
EMAIL=${NAME}@`hostname`
fi
./configure \
--with-compiledby="${NAME} <${EMAIL}>" \
--prefix=$HOME/local \
--enable-gui=gtk2 \
--enable-perlinterp=yes \
--enable-python3interp=yes \
--enable-rubyinterp \
--enable-luainterp=yes \
--enable-multibyte \
--enable-fail-if-missing \
--with-features=huge \
--with-x \
--with-luajit
make
make install
# Without X
sudo apt-get -y install \
lua5.2 liblua5.2-dev luajit libluajit-5.1-2 libluajit-5.1-dev \
libperl-dev \
libpython-dev libpython3-dev \
ruby ruby-dev
mkdir -p $HOME/local/src
cd $HOME/local/src
if [ -d vim ]; then
cd vim
git fetch origin
else
git clone https://github.com/vim/vim
cd vim
fi
VERSION=`git tag -l | sort --version-sort | tail -1`
git checkout $VERSION
NAME=`git config user.name`
if [ $? != 0 -o -z $NAME ]; then
NAME=`whoami`
fi
EMAIL=`git config user.email`
if [ $? != 0 -o -z $EMAIL ]; then
EMAIL=${NAME}@`hostname`
fi
./configure \
--with-compiledby="${NAME} <${EMAIL}>" \
--prefix=$HOME/local \
--enable-perlinterp=yes \
--enable-python3interp=yes \
--enable-rubyinterp \
--enable-luainterp=yes \
--enable-multibyte \
--enable-fail-if-missing \
--with-features=huge \
--with-luajit
make
make install
## Update
cd vim
make clean
make distclean
git pull
# ./configure
make
make install