-
Notifications
You must be signed in to change notification settings - Fork 2
/
install.sh
executable file
·62 lines (50 loc) · 1.54 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
if [[ "$(uname)" == "Linux" ]]; then
sudo add-apt-repository ppa:jonathonf/vim
sudo apt update
sudo apt-get install vim
sudo apt-get install ctags
sudo apt-get install cscope
sudo apt install build-essential cmake3 python3-dev
sudo apt-get install silversearcher-ag
sudo apt-get install figlet
elif [[ "$(uname)" == "Darwin" ]]; then
brew install vim
brew install ctags
brew install cscope
brew install the_silver_searcher
brew install cmake
brew install figlet
fi
# For c/c++ programming
# cp mkcscope.sh /usr/bin/
# Install Vim plugin manager Vundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
# Save backup of vimrc file
rm ~/.vimrc_old
mv ~/.vimrc ~/.vimrc_old
cp .vimrc ~/
# Copy color scheme
if [ ! -d "~/.vim" ]; then
mkdir ~/.vim
fi
cp -r ./colors ~/.vim/colors
# Install plugins
vim -c 'PluginInstall' -c 'qa!'
git clone https://github.com/vim-scripts/SrcExpl.git
git clone https://github.com/vim-scripts/Trinity.git
git clone https://github.com/szw/vim-g.git
# Not used. Auto completion engine YouCompleteMe
# cd ~/.vim/bundle/YouCompleteMe
# python3 install.py --clang-completer
# cd -
# Add additional plugins
mkdir ~/.vim/plugin
cp -r Trinity/plugin/trinity.vim ~/.vim/plugin/
cp -r vim-g/plugin/g.vim ~/.vim/plugin/
# Not used. for c/c++ programming
# cp -r SrcExpl/plugin/srcexpl.vim ~/.vim/plugin/
mkdir -p ~/.vim/pack/tpope/start
cd ~/.vim/pack/tpope/start
git clone https://tpope.io/vim/eunuch.git
vim -u NONE -c "helptags eunuch/doc" -c q