From a693df562838c3f93fcb6055359091aab834c8e2 Mon Sep 17 00:00:00 2001
From: Max Christian Pohle
Date: Mon, 12 Nov 2018 01:10:33 +0100
Subject: Found and added formatoptions :)

---
 after/syntax/c.vim   | 4 ++++
 ftplugin/doxygen.vim | 2 ++
 ftplugin/text.vim    | 6 ++++++
 install.sh           | 3 ++-
 4 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/after/syntax/c.vim b/after/syntax/c.vim
index 301cd90..0bacea0 100644
--- a/after/syntax/c.vim
+++ b/after/syntax/c.vim
@@ -25,6 +25,10 @@ syn region cBlock start=/{/ end=/}/ transparent
 " configure c.vim so that it automatically allows doxygen like comments
 let g:load_doxygen_syntax=1
 
+
+set formatoptions+=j " Where it makes sense, remove a comment leader when joining lines.
+set formatoptions+=1 " Don't break a line after a one-letter word.
+
 " multiple single line comments in a row " broken!
 " syn region myCComment start="/\*" end="\*/" fold keepend transparent
 
diff --git a/ftplugin/doxygen.vim b/ftplugin/doxygen.vim
index dd2cdf2..7dcd7e5 100644
--- a/ftplugin/doxygen.vim
+++ b/ftplugin/doxygen.vim
@@ -1 +1,3 @@
 let g:load_doxygen_syntax=1
+
+syntax match Normal /@copydoc/     conceal cchar=↺
diff --git a/ftplugin/text.vim b/ftplugin/text.vim
index 226de51..2095ef5 100644
--- a/ftplugin/text.vim
+++ b/ftplugin/text.vim
@@ -1,2 +1,8 @@
 " highlight double words (its unlikely they are right)
 autocmd InsertLeave * syntax match Convention /\v<(\w+)\_s+\1>/ containedin=ALL
+
+
+set autoindent nosmartindent nocindent
+
+set formatoptions+=n " When formatting text, recognize numbered lists.
+set formatoptions+=a " Automatic formatting of paragraphs.
diff --git a/install.sh b/install.sh
index 2eb2a56..bc8a868 100755
--- a/install.sh
+++ b/install.sh
@@ -10,9 +10,10 @@ cd $THIS_DIR
 
 # Fetch dependencies (git submodules)...
 awk '/path = (.*)/{PATH=$3;next} /url = /{URL=$3;next} URL{system("git submodule add " URL " " PATH)}' .gitmodules
-git submodule update --init --remote --progress
+git submodule update --init --remote --progress --recursive
 
 # compile YouCompleteMe
+# dependencies: python-certifi
 cd $THIS_DIR/pack/vim/opt/YouCompleteMe
 ./install.py --clang-completer
 
-- 
cgit v1.2.3