Repository navigation
Expand file tree
/
Copy path.bash_vim_specific
More file actions
108 lines (104 loc) · 2.48 KB
/
Copy path.bash_vim_specific
File metadata and controls
108 lines (104 loc) · 2.48 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#!/usr/bin/env bash
update_vim_bundles() {
for bundle_repo in $VIM_BUNDLE_REPOS
do
log_info "Updating '$bundle_repo'"
dir="$HOME/.vim/bundle/$(basename $bundle_repo)"
pushd "$dir" && git pull --quiet && popd
done
}
install_ycm() {
test -n "$VIM_REINSTALL_YCM" && rm -f "$HOME/.config/vim/.ycm_installed"
test -f "$HOME/.config/vim/.ycm_installed" && return 0
test -d "$HOME/.config/vim" || mkdir -p "$HOME/.config/vim"
case "$(uname)" in
Darwin)
brew install cmake &&
pushd ~/.vim/bundle/YouCompleteMe &&
git submodule update --init --recursive &&
python3 install.py --clang-completer --go-completer --rust-completer --clangd-completer &&
touch "$HOME/.config/vim/.ycm_installed"
rc=$?
popd || return
return "$rc"
;;
*)
log_error "This operating system is not supported yet: $(uname)"
return 1
;;
esac
}
VIM_BUNDLE_REPOS=$(cat <<GITHUB_URLS
907th/vim-auto-save
AndrewRadev/linediff.vim
Chiel92/vim-autoformat
NoahTheDuke/vim-just
PProvost/vim-ps1
Xuyuanp/nerdtree-git-plugin
aliou/bats.vim
artempyanykh/marksman
cappyzawa/starlark.vim
carvel-dev/ytt.vim
cespare/vim-toml
chaquotay/ftl-vim-syntax
chr4/nginx.vim
claco/jasmine.vim
ctrlpvim/ctrlp.vim
ctrlpvim/ctrlp.vim
dense-analysis/ale
dhruvasagar/vim-table-mode
fatih/vim-go
flazz/vim-colorschemes
hashivim/vim-terraform
jsecchiero/vim-sops.git
junegunn/fzf
junegunn/fzf.vim
junegunn/vim-easy-align
junegunn/vim-emoji
kovetskiy/vim-bash
lambdalisue/battery.vim
leafgarland/typescript-vim
martinda/Jenkinsfile-vim-syntax
masukomi/vim-markdown-folding
mzlogin/vim-markdown-toc
othree/javascript-libraries-syntax.vim
pangloss/vim-javascript
plasticboy/vim-markdown
preservim/vimux
rlue/vim-fold-rspec
romainl/vim-cool
rust-lang/rust.vim
ryanoasis/vim-devicons
scrooloose/nerdtree
skywind3000/asyncrun.vim
thoughtbot/vim-rspec
towolf/vim-helm
tpope/vim-classpath
tpope/vim-fugitive.git
tpope/vim-unimpaired
trusktr/seti.vim
vim-airline/vim-airline
vim-airline/vim-airline-themes
vim-scripts/groovy.vim
vim-test/vim-test
will133/vim-dirdiff
willchao612/vim-diagon
xolox/vim-easytags
xolox/vim-misc
ycm-core/YouCompleteMe
yuratomo/w3m.vim
zivyangll/git-blame.vim
GITHUB_URLS
)
for bundle_repo in $VIM_BUNDLE_REPOS
do
if [ ! -f ~/.vim/bundle ]
then
mkdir -p ~/.vim/bundle
fi
if [ ! -d "$HOME/.vim/bundle/$(basename $bundle_repo)" ]
then
git clone "https://github.com/$bundle_repo" "$HOME/.vim/bundle/$(basename "$bundle_repo")"
fi
done
install_ycm