summaryrefslogtreecommitdiffstats
path: root/vim
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2023-06-07 20:16:54 +0100
committerMatthew Lemon <y@yulqen.org>2023-06-07 20:16:54 +0100
commitc565ffb21c588b447302584a489f064e9b2059ac (patch)
tree83e938c63fa46ef8a48587a879cc92087f1b7dd0 /vim
parentdbe27f68e857cfe888bed4ba4412c5a3360f98e4 (diff)
Ngrep uses vimgrep again
Diffstat (limited to 'vim')
-rw-r--r--vim/vimrc3
1 files changed, 2 insertions, 1 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 1fb26aa..ac485f4 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -143,7 +143,8 @@ nnoremap <leader>ni :e $NOTES_DIR/index.md<CR>:cd $NOTES_DIR<CR>
" -i case insensitive
" -g glob pattern
" ! to not immediately open first search result
-command! -nargs=1 Ngrep :silent grep! "<args>" -i -g '*.md' $NOTES_DIR | execute ':redraw!'
+"command! -nargs=1 Ngrep :silent grep! "<args>" -i -g '*.md' $NOTES_DIR | execute ':redraw!'
+command! -nargs=1 Ngrep vimgrep "<args>" $NOTES_DIR/**/*.md
nnoremap <leader>nn :Ngrep
" Open quickfix list in a right vertical split (good for Ngrep results)