From 3a26f1a6f4ab064345f2327e6c40bb73de63a83b Mon Sep 17 00:00:00 2001 From: katherine Date: Thu, 11 Jul 2019 04:57:14 -0700 Subject: 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 --- .vimrc | 1 + 1 file changed, 1 insertion(+) (limited to '.vimrc') 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 -- O*/hhi/* -- cgit v1.2.3