-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_vim.sh
66 lines (50 loc) · 1.68 KB
/
install_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
66
#!/bin/sh
#######################################################################
# Installs the vim configuration and the basic plugins under linux #
#######################################################################
# get vim version
VIMVER=`vim --version | head -1 | sed "s/^[^0-9]*//" | sed "s/ .*$//"`
GT_VIM8=`echo "($VIMVER < 8.0)" | bc`
######################
# Init vim configs #
######################
# install pathogen
mkdir -p ~/.vim/autoload ~/.vim/bundle && curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
cd ~/.vim/bundle
#####################
# General plugins #
#####################
# NERDTree
git clone https://github.com/scrooloose/nerdtree.git ~/.vim/bundle/nerdtree
# fast finding of files
git clone https://github.com/kien/ctrlp.vim.git
# sophisticated statusline
git clone https://github.com/vim-airline/vim-airline
# snippet manager + templates
git clone https://github.com/SirVer/ultisnips.git
git clone git://github.com/honza/vim-snippets.git
# git plugin
git clone https://github.com/tpope/vim-fugitive.git
# Source code comment plugin
git clone https://github.com/tomtom/tcomment_vim
############
# Python #
############
# Python autocompletion
git clone --recursive https://github.com/davidhalter/jedi-vim.git ~/.vim/bundle/jedi-vim
# PEP8 indentation
git clone https://github.com/Vimjas/vim-python-pep8-indent.git
# lint engine
if [ $GT_VIM8 ]
then
echo "vim >= 8: using ale"
git clone https://github.com/w0rp/ale.git
else
echo "vim < 8: using syntastic"
git clone https://github.com/vim-syntastic/syntastic
fi
python3 -m pip install flake8
###########
# LaTeX #
###########
git clone https://github.com/lervag/vimtex.git