-
Notifications
You must be signed in to change notification settings - Fork 2
/
install.sh
executable file
·43 lines (36 loc) · 1 KB
/
install.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
# last modified 2019-11-13
# Dorai Sitaram
VICONFIGDIR=${XDG_CONFIG_HOME:-~/.config}/nvim
if test ! -d $VICONFIGDIR; then
if test "$(which nvim)"; then
mkdir -p $VICONFIGDIR
else
echo You don\'t appear to be using Neovim\; trying Vim...
export VICONFIGDIR=~/.vim
if test ! -d ~/.vim; then
if test "$(which vim)"; then
mkdir -p ~/.vim
else
echo You don\'t appear to be using Vim either.
echo Please see README.adoc on how to install neoscmindent
echo on your system.
exit
fi
fi
echo You appear to be using Vim.
fi
fi
PACKDIR=$VICONFIGDIR/pack/3rdpartyplugins/start
mkdir -p $PACKDIR
rm -fr $PACKDIR/neoscmindent
if test -d ../neoscmindent; then
cp -prH ../neoscmindent $PACKDIR
else
cd $PACKDIR
git clone https://github.com/ds26gte/neoscmindent
fi
if test -d $PACKDIR/neoscmindent/doc; then
cd $PACKDIR/neoscmindent/doc
EXEDIT=$(if test "$(which nvim)"; then echo nvim; else echo vim;fi)
$EXEDIT -es -c 'helptags .'
fi