summaryrefslogtreecommitdiff
path: root/files/vim/pack/downloads/create_opt.sh
blob: 0029440afeb2941ea0e0762f9a258dacad311e2a (plain)
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
#! /usr/bin/env sh

if [ ! -d "./opt" ]; then
  echo "'opt' dir not found, create it here and re-run $0"
  exit 1
fi

git clone --depth=1 https://github.com/tpope/vim-fugitive.git opt/vim-fugitive
cd opt/vim-fugitive
rm .git/hooks/*
git apply ../../../../patches/vim_fugitive_tab_expand.diff
cd ../..

git clone --depth=1 https://github.com/itchyny/vim-gitbranch.git opt/vim-gitbranch
cd opt/vim-gitbranch
rm .git/hooks/*
cd ../..

git clone --depth=1 https://github.com/matcatc/vim-asciidoc-folding.git opt/vim-asciidoc-folding
cd opt/vim-asciidoc-folding
rm .git/hooks/*
cd ../..

git clone --depth=1 https://github.com/chrisbra/Colorizer.git opt/Colorizer
cd opt/Colorizer
rm .git/hooks/*
cd ../..

#git clone --depth=1 https://github.com/yegappan/lsp.git opt/lsp
#cd opt/lsp
#rm .git/hooks/*
#cd ../..

vim -u NONE -c "helptags opt/vim-fugitive/doc" -c q
vim -u NONE -c "helptags opt/vim-gitbranch/doc" -c q
vim -u NONE -c "helptags opt/vim-asciidoc-folding/doc" -c q
vim -u NONE -c "helptags opt/Colorizer/doc" -c q
#vim -u NONE -c "helptags opt/lsp/doc" -c q