aboutsummaryrefslogtreecommitdiffstats
path: root/.vimrc
diff options
context:
space:
mode:
authorkatherine <ageha@airen-no-jikken.icu>2019-07-11 04:57:14 -0700
committerkatherine <ageha@airen-no-jikken.icu>2019-07-11 04:57:14 -0700
commit3a26f1a6f4ab064345f2327e6c40bb73de63a83b (patch)
tree313e801d294794ddd297060caa37009c1f8a37eb /.vimrc
parent40195ec4af1d1192ca6d1a9ef5aaacf002b87309 (diff)
downloaddotfiles-3a26f1a6f4ab064345f2327e6c40bb73de63a83b.tar.gz
use a new c indentation style
auto keeps switch and case on the same depth, indents if conditions only once, pulls own-line closing prens to match the indentation they're started from
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index 89dfe30..d56636b 100644
--- a/.vimrc
+++ b/.vimrc
@@ -379,6 +379,7 @@ fun! s:settings_c()
setlocal shiftwidth=4
setlocal tabstop=4
setlocal softtabstop=4
+ setlocal cinoptions=:0,(s,m1,U1
"mappings
"note: these mappings are in weird reverse order to avoid opening folds
nnoremap <buffer> -- O<Space>*/<Esc>hhi/*<Space>