From cddc92402d44fbb1565990f2fb1b97c02f79a211 Mon Sep 17 00:00:00 2001 From: Nick Shipp Date: Fri, 21 Aug 2020 12:43:11 -0400 Subject: Fix vim cinoptions --- vim/main.vim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'vim/main.vim') diff --git a/vim/main.vim b/vim/main.vim index 16251a1..6f66f19 100644 --- a/vim/main.vim +++ b/vim/main.vim @@ -44,7 +44,7 @@ set cscopequickfix=g-,s- " use quickfix for cscope results set smartcase ignorecase " smartly ignore case in /search set lazyredraw " don't redraw like crazy during macros set browsedir=buffer " :browse the current buffer's directory -" TODO: set cinoptions=:0 " for C, don't indent case statements +set cinoptions=:0,t0,(0,m1,+0 " for C, don't indent case statements set list " turn on list mode to show invisible chars set listchars=trail:-,tab:>- " limit list to trailing whitespace and tabs set tildeop " ~ becomes a real operator @@ -75,6 +75,11 @@ nmap ]l :lnext nmap [l :lprev nmap ]L :llast nmap [L :lfirst + +nmap :b# + +vnoremap / /\%V +vnoremap ? ?\%V "" }}} "" {{{ Functions " PASTEBIN with pbpst -- cgit v1.2.3-70-g09d2