summaryrefslogtreecommitdiff
path: root/vim/main.vim
diff options
context:
space:
mode:
authorNick Shipp <git@segbrk.com>2020-08-21 12:43:11 -0400
committerNick Shipp <git@segbrk.com>2020-08-21 12:43:11 -0400
commitcddc92402d44fbb1565990f2fb1b97c02f79a211 (patch)
tree9b31d77ee93449b5bb69455be7806dda6ced1794 /vim/main.vim
parent447137cd744d80f498062558c94e31c187b947eb (diff)
Fix vim cinoptionsHEADmaster
Diffstat (limited to 'vim/main.vim')
-rw-r--r--vim/main.vim7
1 files changed, 6 insertions, 1 deletions
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<cr>
nmap [l :lprev<cr>
nmap ]L :llast<cr>
nmap [L :lfirst<cr>
+
+nmap <c-b> :b#<cr>
+
+vnoremap / <Esc>/\%V
+vnoremap ? <Esc>?\%V
"" }}}
"" {{{ Functions
" PASTEBIN with pbpst