aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]install.sh40
1 files changed, 13 insertions, 27 deletions
diff --git a/install.sh b/install.sh
index cfdf3bd..8dd8d7d 100644..100755
--- a/install.sh
+++ b/install.sh
@@ -1,35 +1,21 @@
1#!/bin/env bash
2
1# Welcome to Vimax! 3# Welcome to Vimax!
2# 4THIS_DIR=$(dirname $(realpath $0))
3# This script allows a local installation to some random path and starts 5
4# the vim-EDITOR after installation is finished. That way the configuration 6pushd .
5# can easily be tested.
6#
7# You have just executed this script
8 7
9if [[ ! $EDITOR =~ ^n?g?vim?$ ]]; then 8# Change to this files directory
10 echo Your EDITOR environment variable is set to \"$EDITOR\" 9cd $THIS_DIR
11 echo This script requires it to be some kind of vim or nvim, gvim, vi, ...
12 echo
13 echo Please run this script with EDITOR=vim sh install.sh
14 echo Which will set the EDITOR just temporary for running this script.
15 exit
16fi
17 10
18cd $(dirname "$0") 11# Fetch dependencies (git submodules)...
12git submodule update --init --remote --progress
19 13
20echo "working in $(pwd)" 14# compile YouCompleteMe
15cd $THIS_DIR/pack/vim/opt/YouCompleteMe
16./install.py --clang-completer
21 17
22mkdir -p autoload
23ln -i -s -b vimrc-full vimrc
24 18
25$EDITOR -u NORC -N \
26 +runtime plugin/netrwPlugin.vim \
27 +'new +saveas!\ autoload/plug.vim https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' \
28 +'new +saveas!\ vimrc-full http://git.entwicklerseite.de/vim/plain/vimrc-full' \
29 +qall
30 19
31$EDITOR -u vimrc-full -N \
32 +'PlugInstall --sync' \
33 +qall
34 20
35$EDITOR -u vimrc-full -N $0 21popd
..