summaryrefslogtreecommitdiff
path: root/vim/main.vim
diff options
context:
space:
mode:
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