summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--vim/main.vim7
2 files changed, 7 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 07bb114..d0bb089 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
.*.un~
.*.sw*
+*.sw*
priv
qutebrowser/bookmarks
.netrwhist
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