aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim')
-rw-r--r--vim/vimrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index cbc4b216..df0caa18 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -311,6 +311,11 @@ nnoremap <Bslash>. :<C-U>lmake!<CR>
nnoremap <Bslash>< :<C-U>'[,']<<CR>
nnoremap <Bslash>> :<C-U>'[,']><CR>
+" \/ types :vimgrep for me ready to enter a search pattern
+nnoremap <Bslash>/ :<C-U>vimgrep /\c/ **<S-Left><S-Left><Right>
+" \? types :helpgrep for me ready to enter a search pattern
+nnoremap <Bslash>? :<C-U>helpgrep \c<S-Left>
+
" \DEL deletes the current buffer
nnoremap <Bslash><Delete> :bdelete<CR>
" \INS edits a new buffer