From df5e16fc3baa09ef63d9ee9c0e07861f23d5149d Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Mon, 14 May 2018 22:15:01 +0200 Subject: Added installer and fixed spell checking error The error was visible in C files where comments of highlighting group Folded were not displaying bad spelling colors any more. --- after/syntax/c.vim | 8 ++++---- install.sh | 31 +++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 4 deletions(-) create mode 100644 install.sh 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 syn region cBlock start=/{/ end=/}/ transparent " multiple single line comments in a row -syn clear cComment -syn match cComment /\v\/\/.*(\_.\/\/.*)+/ fold -syn region cComment start="\/\*" end="\*\/" -syn region Folded start="^\/\*" end="\*\/" fold +" syn clear cComment +" syn match cComment /\v\/\/.*(\_.\/\/.*)+/ fold +" syn region cComment start="\/\*" end="\*\/" +" syn region Folded start="^\/\*" end="\*\/" fold " 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 @@ +# Welcome to Vimax! +# +# You have just executed this script + +if [[ ! $EDITOR =~ ^n?g?vim?$ ]]; then + echo Your EDITOR environment variable is set to \"$EDITOR\" + echo This script requires it to be some kind of vim or nvim, gvim, vi, ... + echo + echo Please run this script with EDITOR=vim sh install.sh + echo Which will set the EDITOR just temporary for running this script. + exit +fi + +cd $(dirname "$0") + +echo "working in $(pwd)" + +mkdir -p autoload +ln -i -s -b vimrc-full vimrc + +$EDITOR -u NORC -N \ + +runtime plugin/netrwPlugin.vim \ + +'new +saveas!\ autoload/plug.vim https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' \ + +'new +saveas!\ vimrc-full http://git.entwicklerseite.de/vim/plain/vimrc-full' \ + +qall + +$EDITOR -u vimrc-full -N \ + +'PlugInstall --sync' \ + +qall + +$EDITOR $0 -- cgit v1.2.3