From c565ffb21c588b447302584a489f064e9b2059ac Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 7 Jun 2023 20:16:54 +0100 Subject: Ngrep uses vimgrep again --- vim/vimrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vim/vimrc') diff --git a/vim/vimrc b/vim/vimrc index 1fb26aa..ac485f4 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -143,7 +143,8 @@ nnoremap ni :e $NOTES_DIR/index.md:cd $NOTES_DIR " -i case insensitive " -g glob pattern " ! to not immediately open first search result -command! -nargs=1 Ngrep :silent grep! "" -i -g '*.md' $NOTES_DIR | execute ':redraw!' +"command! -nargs=1 Ngrep :silent grep! "" -i -g '*.md' $NOTES_DIR | execute ':redraw!' +command! -nargs=1 Ngrep vimgrep "" $NOTES_DIR/**/*.md nnoremap nn :Ngrep " Open quickfix list in a right vertical split (good for Ngrep results) -- cgit v1.2.3