aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-02 11:50:26 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-02 11:50:26 +1200
commitaf42abfadd823ae226d08d4bbcc733e56f40c49a (patch)
tree63f8f75108013719838238399b7db4fd7937c8ac
parent90f19226d36082287fd18c5cfa68bd15a116a568 (diff)
downloaddotfiles-af42abfadd823ae226d08d4bbcc733e56f40c49a.tar.gz
dotfiles-af42abfadd823ae226d08d4bbcc733e56f40c49a.zip
Add some experimental :vimgrep and :helpgrep maps
-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