From 45824a2a1b3f048ac8860f1ec469a71365e10ea2 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 15 Jun 2023 11:06:27 +0100 Subject: Ngrep stuff --- vim/vimrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vim/vimrc b/vim/vimrc index 2f11be8..90a05f2 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