diff options
author | Max Christian Pohle | 2020-09-11 22:22:20 +0200 |
---|---|---|
committer | Max Christian Pohle | 2020-09-11 22:22:20 +0200 |
commit | ad266961572412e853e4e72f1df99dddf8764284 (patch) | |
tree | c133ade70710f534067f8336278fc6d0c87a996e | |
parent | 3c64b8467ae6c4d5471a6c8a2aa71c1815664a62 (diff) | |
download | vim-karlmarks-ad266961572412e853e4e72f1df99dddf8764284.tar.bz2 vim-karlmarks-ad266961572412e853e4e72f1df99dddf8764284.zip |
made parent indentation specific to C
-rw-r--r-- | ftplugin/c.vim | 2 | ||||
-rw-r--r-- | vimrc-common | 2 |
2 files changed, 3 insertions, 1 deletions
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 | |||
2 | setlocal breakat-=- | 2 | setlocal breakat-=- |
3 | setlocal keywordprg=man\ 3 | 3 | setlocal keywordprg=man\ 3 |
4 | 4 | ||
5 | setlocal cindent cinoptions+=(0 | " indent at parentheses | ||
6 | |||
5 | map <buffer> = :pyfile /usr/share/clang/clang-format.py<CR> | 7 | map <buffer> = :pyfile /usr/share/clang/clang-format.py<CR> |
6 | 8 | ||
7 | 9 | ||
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, | |||
12 | set nonumber norelativenumber | " do not show numbers by default, because that causes a performance loss, instead activate them on a file type basis | 12 | set nonumber norelativenumber | " do not show numbers by default, because that causes a performance loss, instead activate them on a file type basis |
13 | 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) | 13 | 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) |
14 | set hlsearch incsearch | " highlight pattern while entering it (performance wise this isn't that good) | 14 | set hlsearch incsearch | " highlight pattern while entering it (performance wise this isn't that good) |
15 | set cindent cinoptions+=(0 | " indent at parentheses | 15 | " set cindent cinoptions+=(0 | " indent at parentheses |
16 | 16 | ||
17 | set path+=** | " allow recursive searches for files | 17 | set path+=** | " allow recursive searches for files |
18 | let &path = &path.",/usr/lib/modules/".substitute(system('uname -r'), "\n", "", "")."/build/include" | 18 | let &path = &path.",/usr/lib/modules/".substitute(system('uname -r'), "\n", "", "")."/build/include" |