From ad266961572412e853e4e72f1df99dddf8764284 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Fri, 11 Sep 2020 22:22:20 +0200 Subject: made parent indentation specific to C --- ftplugin/c.vim | 2 ++ vimrc-common | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ftplugin/c.vim b/ftplugin/c.vim index 82834a2..f77667f 100644 --- a/ftplugin/c.vim +++ b/ftplugin/c.vim @@ -2,6 +2,8 @@ setlocal equalprg=clang-format setlocal breakat-=- setlocal keywordprg=man\ 3 +setlocal cindent cinoptions+=(0 | " indent at parentheses + map = :pyfile /usr/share/clang/clang-format.py diff --git a/vimrc-common b/vimrc-common index 30752fb..239cc91 100644 --- a/vimrc-common +++ b/vimrc-common @@ -12,7 +12,7 @@ set virtualedit=all | " virtual edit should be default behaviour, set nonumber norelativenumber | " do not show numbers by default, because that causes a performance loss, instead activate them on a file type basis set ignorecase smartcase | " search with ignore case by default, but use case sensitive search when one capital char is contained and highlight while typing (even though its slower) set hlsearch incsearch | " highlight pattern while entering it (performance wise this isn't that good) -set cindent cinoptions+=(0 | " indent at parentheses +" set cindent cinoptions+=(0 | " indent at parentheses set path+=** | " allow recursive searches for files let &path = &path.",/usr/lib/modules/".substitute(system('uname -r'), "\n", "", "")."/build/include" -- cgit v1.2.3