aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--after/syntax/c.vim8
-rw-r--r--install.sh31
2 files changed, 35 insertions, 4 deletions
diff --git a/after/syntax/c.vim b/after/syntax/c.vim
index d08eabd..c7a9bc0 100644
--- a/after/syntax/c.vim
+++ b/after/syntax/c.vim
@@ -16,10 +16,10 @@ syn clear cBlock
16syn region cBlock start=/{/ end=/}/ transparent 16syn region cBlock start=/{/ end=/}/ transparent
17 17
18" multiple single line comments in a row 18" multiple single line comments in a row
19syn clear cComment 19" syn clear cComment
20syn match cComment /\v\/\/.*(\_.\/\/.*)+/ fold 20" syn match cComment /\v\/\/.*(\_.\/\/.*)+/ fold
21syn region cComment start="\/\*" end="\*\/" 21" syn region cComment start="\/\*" end="\*\/"
22syn region Folded start="^\/\*" end="\*\/" fold 22" syn region Folded start="^\/\*" end="\*\/" fold
23 23
24 24
25" let b:current_syntax = "c" 25" let b:current_syntax = "c"
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
5if [[ ! $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
12fi
13
14cd $(dirname "$0")
15
16echo "working in $(pwd)"
17
18mkdir -p autoload
19ln -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
..