forked from kaosf/ubuntu-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvim-setup.sh
More file actions
69 lines (64 loc) · 1.55 KB
/
vim-setup.sh
File metadata and controls
69 lines (64 loc) · 1.55 KB
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
# 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
## 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
git clone https://github.com/vim/vim
cd vim
git checkout v7.4.854
./configure \
--prefix=$HOME/local \
--enable-gui=gtk2 \
--enable-perlinterp=yes \
--enable-pythoninterp=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
# ...
./configure \
--prefix=$HOME/local \
--enable-perlinterp=yes \
--enable-pythoninterp=yes \
--enable-rubyinterp \
--enable-luainterp=yes \
--enable-multibyte \
--enable-fail-if-missing \
--with-features=huge \
--with-luajit
## Update
cd vim
make clean
make distclean
git pull
# ./configure
make
make install