-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup-vim.sh
executable file
·66 lines (51 loc) · 1.63 KB
/
setup-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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash
#### setup for vim ####
# update vimrc
cp vimrc ~/.vimrc
mkdir ~/.vim-backup
pwd = $(pwd)
# install pathogen to manage plugins
cd ~
mkdir -p .vim/{autoload,bundle}
cd .vim
git clone https://github.com/tpope/vim-pathogen.git
cp vim-pathogen/autoload/pathogen.vim autoload
# solarized theme
cd ~/.vim/bundle
git clone https://github.com/altercation/vim-colors-solarized.git
# airline
cd ~/.vim/bundle
git clone https://github.com/bling/vim-airline
sudo apt-get install fonts-powerline
# NERD Tree
cd ~/.vim/bundle
git clone https://github.com/scrooloose/nerdtree
# vimcdoc
cd ~/.vim/bundle
git clone https://github.com/asins/vimcdoc.git
# in vim : :helptags ~/.vim/bundle/vimcdoc/doc
# indentLine
cd ~/.vim/bundle
git clone https://github.com/Yggdroot/indentLine
# python syntax check and many other syntax checkers
sudo apt-get install pyflakes
cd ~/.vim/bundle
# scrooloose/syntastic has many many checkers, it is very powerful
git clone https://github.com/scrooloose/syntastic
# autocomplete: YouCompleteMe
cd ~/.vim/bundle
git clone https://github.com/Valloric/YouCompleteMe
cd YouCompleteMe
# download third party source
git submodule update --init --recursive
# compile source code for complete engine
# with support for C-family and Golang
./install.py --clang-completer --gocode-completer
# delimitmate: auto complete for quotes, parens, brackets, etc.
cd ~/.vim/bundle
git clone https://github.com/raimondi/delimitmate
cd $pwd
# vim solarized theme may not work fine in tmux
# if use tmux, please add below line in .profile or . bashrc:
# alias tmux="TERM=screen-256color-bce tmux"
# this will fix vim color theme in tmux