-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvim-plugins.sh
executable file
·127 lines (92 loc) · 2.84 KB
/
vim-plugins.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
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
#!/bin/bash
install_dir=~/.vim/bundle
color_headline="34"
color_default="33"
function print {
local terminal_width=$(tput cols)
local string_width=$(($terminal_width - 2))
local color=${2:-$color_default}
printf "\n\x1b[%d;7m %-*s\x1b[0m\n" $color $string_width "$1"
}
function clone {
# last argument is the directory name
local dir=${2:-$(basename $1 .git)}
if [[ -d "$install_dir/$dir" ]]; then
printf "\x1b[3;30m$dir\x1b[0m is already installed\n"
return 1
fi
git clone --depth=1 $@
echo ""
return 0
}
if [[ -d $install_dir ]]; then
cd $install_dir
else
echo "Could not find install directory"
exit 1
fi
print "Pathogen plugin handler"
if [[ -f ~/.vim/autoload/pathogen.vim ]]; then
printf "\x1b[3;30mPathogen\x1b[0m is already installed\n"
else
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim [email protected]/pathogen.vim
fi
## SYNTAX
print "S Y N T A X" $color_headline
print "Mustache/Handlebars"
clone [email protected]:mustache/vim-mustache-handlebars.git mustache
print "Stylus"
clone [email protected]:wavded/vim-stylus.git
print "Jinja"
clone [email protected]:lepture/vim-jinja.git
print "JavaScript"
clone [email protected]:jelera/vim-javascript-syntax.git
print "Terraform"
clone [email protected]:hashivim/vim-terraform.git
print "Bash"
clone [email protected]:kovetskiy/vim-bash.git
## PLUGINS
print "P L U G I N S" $color_headline
print "Ranger"
clone [email protected]:francoiscabrol/ranger.vim.git
print "SnipMate"
clone [email protected]:tomtom/tlib_vim.git
clone [email protected]:MarcWeber/vim-addon-mw-utils.git
clone [email protected]:garbas/vim-snipmate.git
clone [email protected]:honza/vim-snippets.git
print "Commentary"
clone [email protected]:tpope/vim-commentary
print "Git gutter"
clone [email protected]:airblade/vim-gitgutter.git
print "Syntastic"
clone [email protected]:vim-syntastic/syntastic.git
print "FZF.vim"
clone [email protected]:junegunn/fzf.vim.git
print "Fugitive"
clone [email protected]:tpope/vim-fugitive.git
vim -u NONE -c "helptags vim-fugitive/doc" -c q
print "Markdown preview"
clone [email protected]:iamcco/markdown-preview.nvim.git
if [[ $? -eq 0 ]]; then
cd "$install_dir/markdown-preview.nvim/app"
npm install
cd -
fi
print "Vimspector"
clone [email protected]:puremourning/vimspector.git
print "Language Server"
clone [email protected]:prabirshrestha/vim-lsp.git
clone [email protected]:mattn/vim-lsp-settings.git
clone [email protected]:prabirshrestha/asyncomplete.vim.git
clone [email protected]:prabirshrestha/asyncomplete-lsp.vim.git
clone [email protected]:preservim/vim-markdown.git
print "Vista"
brew list universal-ctags > /dev/null || brew install universal-ctags
clone [email protected]:liuchengxu/vista.vim.git
print "Quick-Scope"
clone [email protected]:unblevable/quick-scope
print "Copilot"
clone [email protected]:github/copilot.vim.git
print "Context"
clone [email protected]:wellle/context.vim.git