aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-12-17 14:38:11 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-12-17 14:38:22 +1300
commit2f44d250da13dab5d1b5aeab1aef10ef08aaa880 (patch)
treeb2298e9300c2c1e93e884f3cd536f83b67f3e106
parentMerge branch 'release/v3.2.0' into develop (diff)
downloaddotfiles-2f44d250da13dab5d1b5aeab1aef10ef08aaa880.tar.gz
dotfiles-2f44d250da13dab5d1b5aeab1aef10ef08aaa880.zip
Add /j flag to :vimgrep shortcut
This prevents a jump to the first match, which I usually don't want, at least immediately.
-rw-r--r--vim/vimrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/vimrc b/vim/vimrc
index f5ffec73..69f63083 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -404,7 +404,7 @@ xmap <Leader>{ <Plug>(VerticalRegionUpVisual)
xmap <Leader>} <Plug>(VerticalRegionDownVisual)
" \/ types :vimgrep for me ready to enter a search pattern
-nnoremap <Leader>/ :<C-U>vimgrep /\c/ **<S-Left><S-Left><Right>
+nnoremap <Leader>/ :<C-U>vimgrep /\c/j **<S-Left><S-Left><Right>
" \? types :helpgrep for me ready to enter a search pattern
nnoremap <Leader>? :<C-U>helpgrep \c<S-Left>