add auto-update/install vim script. update vimrc

This commit is contained in:
2018-01-01 20:18:37 +01:00
parent b19d7bdd21
commit 038ed4dd54
2 changed files with 136 additions and 49 deletions

39
vim/install.sh Executable file
View 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'
################################################################################