add auto-update/install vim script. update vimrc
This commit is contained in:
39
vim/install.sh
Executable file
39
vim/install.sh
Executable file
@@ -0,0 +1,39 @@
|
||||
#!/bin/bash
|
||||
################################################################################
|
||||
# file 'install.sh', created by motius, on 2017-10-28
|
||||
################################################################################
|
||||
|
||||
GITDIR=${HOME}
|
||||
VIMGIT=vim
|
||||
GIT=/usr/bin/git
|
||||
|
||||
################################################################################
|
||||
# go/rego
|
||||
|
||||
cd "${GITDIR}/.vim/" || exit 42;
|
||||
|
||||
if [ -d "vim" ]
|
||||
then
|
||||
cd ${VIMGIT} || exit 42;
|
||||
${GIT} pull
|
||||
else
|
||||
${GIT} clone https://github.com/vim/vim ${VIMGIT}
|
||||
cd ${VIMGIT} || exit 42;
|
||||
fi
|
||||
|
||||
################################################################################
|
||||
# clean
|
||||
|
||||
${GIT} clean -fdx
|
||||
|
||||
################################################################################
|
||||
# compile and install
|
||||
|
||||
./configure --enable-python3interp=yes --prefix="${GITDIR}"/.vim/${VIMGIT}/install
|
||||
make -j
|
||||
make install
|
||||
|
||||
################################################################################
|
||||
# EOF 'install.sh'
|
||||
################################################################################
|
||||
|
||||
Reference in New Issue
Block a user