-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstallvim.sh
executable file
·53 lines (51 loc) · 1.29 KB
/
installvim.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
#!/bin/bash
sudo apt update
sudo apt install -y \
build-essential \
cmake \
curl \
default-jdk \
git \
golang \
mono-complete \
nodejs \
npm \
python3-dev \
vim-athena \
wget
mkdir -p .ssh
git clone https://github.com/flyfeifan/Vundle.git ~/.vim/bundle/Vundle.vim
mkdir -p $HOME/.vim/colors
git clone https://github.com/ajmwagar/vim-deus.git
mv vim-deus/colors/deus.vim $HOME/.vim/colors/
rm -rf vim-deus
cat <<- eos > "$HOME/.vimrc"
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'Valloric/YouCompleteMe'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'godlygeek/tabular'
Plugin 'plasticboy/vim-markdown'
" All plugins must be added before this line
call vundle#end()
filetype plugin indent on
set nu
let g:airline_theme='deus'
syntax on
set tabstop=4 softtabstop=0 noexpandtab shiftwidth=4 smarttab
set fileformat=unix
set encoding=utf-8
set colorcolumn=90
autocmd FileType html setlocal tabstop=2 shiftwidth=2 softtabstop=2
autocmd FileType css setlocal tabstop=2 shiftwidth=2 softtabstop=2
autocmd FileType javascript setlocal tabstop=2 shiftwidth=2 softtabstop=2
colorscheme deus
filetype on
set conceallevel=2
eos
vim +PluginInstall +qall
python3 $HOME/.vim/bundle/YouCompleteMe/install.py --all