From ac488197c3d4bf4792a1c0c25f9080d15270bb5b Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 8 Jul 2022 13:31:01 +0200 Subject: .vimrc: add Ggr command to open git grep in quickfix Source: https://stackoverflow.com/questions/21931116/getting-git-grep-to-work-effectively-in-vim --- .vimrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.vimrc b/.vimrc index a97779a..8bdb6a5 100644 --- a/.vimrc +++ b/.vimrc @@ -213,3 +213,6 @@ Plug 'junegunn/fzf.vim' call plug#end() " }}} +" {{{ commands +:command -nargs=+ Ggr execute 'silent Ggrep!' | cw | redraw!" +" }}} -- cgit v1.2.3-54-g00ecf