diff options
Diffstat (limited to 'install.sh')
-rw-r--r-- | install.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..1ee5cdf --- /dev/null +++ b/install.sh | |||
@@ -0,0 +1,31 @@ | |||
1 | # Welcome to Vimax! | ||
2 | # | ||
3 | # You have just executed this script | ||
4 | |||
5 | if [[ ! $EDITOR =~ ^n?g?vim?$ ]]; then | ||
6 | echo Your EDITOR environment variable is set to \"$EDITOR\" | ||
7 | echo This script requires it to be some kind of vim or nvim, gvim, vi, ... | ||
8 | echo | ||
9 | echo Please run this script with EDITOR=vim sh install.sh | ||
10 | echo Which will set the EDITOR just temporary for running this script. | ||
11 | exit | ||
12 | fi | ||
13 | |||
14 | cd $(dirname "$0") | ||
15 | |||
16 | echo "working in $(pwd)" | ||
17 | |||
18 | mkdir -p autoload | ||
19 | ln -i -s -b vimrc-full vimrc | ||
20 | |||
21 | $EDITOR -u NORC -N \ | ||
22 | +runtime plugin/netrwPlugin.vim \ | ||
23 | +'new +saveas!\ autoload/plug.vim https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' \ | ||
24 | +'new +saveas!\ vimrc-full http://git.entwicklerseite.de/vim/plain/vimrc-full' \ | ||
25 | +qall | ||
26 | |||
27 | $EDITOR -u vimrc-full -N \ | ||
28 | +'PlugInstall --sync' \ | ||
29 | +qall | ||
30 | |||
31 | $EDITOR $0 | ||