aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorMax Christian Pohle2018-10-29 18:59:10 +0100
committerMax Christian Pohle2018-10-29 18:59:10 +0100
commita1ad32a2911fe6ca05830d8f2c58275f146c9675 (patch)
treec4a75086695781ee2812ee776edf1a3c12c50db8 /install.sh
parent41312b5427c32ab5e8d145c02164020c13d44ae4 (diff)
downloadvim-a1ad32a2911fe6ca05830d8f2c58275f146c9675.tar.bz2
vim-a1ad32a2911fe6ca05830d8f2c58275f146c9675.zip
Ported install script (sort of)
Diffstat (limited to 'install.sh')
-rwxr-xr-x[-rw-r--r--]install.sh54
1 files changed, 20 insertions, 34 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. 7
6# 8# Change to this files directory
7# You have just executed this script 9cd $THIS_DIR
8 10
9if [[ ! $EDITOR =~ ^n?g?vim?$ ]]; then 11# Fetch dependencies (git submodules)...
10 echo Your EDITOR environment variable is set to \"$EDITOR\" 12git submodule update --init --remote --progress
11 echo This script requires it to be some kind of vim or nvim, gvim, vi, ... 13
12 echo 14# compile YouCompleteMe
13 echo Please run this script with EDITOR=vim sh install.sh 15cd $THIS_DIR/pack/vim/opt/YouCompleteMe
14 echo Which will set the EDITOR just temporary for running this script. 16./install.py --clang-completer
15 exit 17
16fi 18
17 19
18cd $(dirname "$0") 20
19 21popd
20echo "working in $(pwd)"
21
22mkdir -p autoload
23ln -i -s -b vimrc-full vimrc
24
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
31$EDITOR -u vimrc-full -N \
32 +'PlugInstall --sync' \
33 +qall
34
35$EDITOR -u vimrc-full -N $0
..