forked from gswirski/.dot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvim-install.sh
More file actions
executable file
·47 lines (39 loc) · 1.42 KB
/
vim-install.sh
File metadata and controls
executable file
·47 lines (39 loc) · 1.42 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
# This installs current vim version
# Symlink things
ln -s ~/.dot/vim/vimrc ~/.vimrc
ln -s ~/.dot/vim ~/.vim
# install prerequisites
sudo apt-get install libncurses5-dev libgnome2-dev libgnomeui-dev \
libgtk2.0-dev libatk1.0-dev libbonoboui2-dev \
libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev ruby-dev mercurial \
libclang-dev
# remove old vim if installed
sudo apt-get remove vim vim-runtime gvim
sudo apt-get remove vim-tiny vim-common vim-gui-common
# download and install
cd ~
hg clone https://code.google.com/p/vim/
cd vim
./configure --with-features=huge \
--enable-multibyte \
--enable-rubyinterp \
--enable-pythoninterp \
--with-python-config-dir=/usr/lib/python2.7/config \
--enable-perlinterp \
--enable-luainterp \
--enable-gui=gtk2 --enable-cscope --prefix=/usr
make VIMRUNTIMEDIR=/usr/share/vim/vim74
sudo make install
# update-alternatives
sudo update-alternatives --install /usr/bin/editor editor /usr/bin/vim 1
sudo update-alternatives --set editor /usr/bin/vim
sudo update-alternatives --install /usr/bin/vi vi /usr/bin/vim 1
sudo update-alternatives --set vi /usr/bin/vim
# Vundle installation
# git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
# Print message
echo "Remember to recompile YCM and install bundles"
echo "cd ~/.vim/bundle/YouCompleteMe ; sudo ./install.sh --clang-completer"
# clean
cd ..
sudo rm -R vim