-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathvim.sh
42 lines (39 loc) · 1.54 KB
/
vim.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
#!/bin/bash
# coding: utf-8
# Copyright (c) 2014
# Gmail:liuzheng712
#
cd /tmp/
wget -c ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2
tar xjf vim-7.4.tar.bz2
cd vim74
./configure --prefix=/usr/local/vim \
--enable-multibyte \
--enable-xim \
--enable-fontset \
--with-features=huge \
--enable-pythoninterp=yes \
--enable-python3interp=yes \
--enable-rubyinterp=dynamic \
--disable-darwin \
--enable-gui=auto \
--enable-gtk2-check \
--enable-gnome-check
--with-python-config-dir=/usr/lib/python2*/config
--with-python3-config-dir=/usr/lib/python3*/config
# --enable-multibyte # Include multibyte editing support
# --enable-xim # Include XIM input support
# --enable-fontset # Include X fontset output support
# --with-features=huge # tiny, small, normal, big or huge
# --enable-pythoninterp=yes # Include Python interpreter
# --enable-python3interp=yes # Include Python3 interpreter
# --enable-rubyinterp=dynamic # Include Ruby interpreter
# --disable-darwin # Disable Darwin (Mac OS X) support
# --enable-gui=auto # X11 GUI default=aauto OPTS=auto/no/gtk2/gnome2/motif/athena/neXtaw/photon/carbon
# --enable-gtk2-check # if auto-select GUI, check for GTK+ 2 default=yes
# --enable-gnome-check # if GTK GUI, check for GNOME default=no
# --with-python-config-dir=/usr/lib/python2*/config # Python's config directiory
# --with-python3-config-dir=/usr/lib/python3*/config # Python3's config directiory
make -j `cat /proc/cpuinfo | grep "^processor" | wc -l`
make install
ln -s /usr/local/vim/bin/vim /usr/bin/