summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2022-07-08 13:31:01 +0200
committerTobias Klauser <tklauser@distanz.ch>2022-07-08 13:31:01 +0200
commitac488197c3d4bf4792a1c0c25f9080d15270bb5b (patch)
tree6b2d3c25bb82ec232392621962810fc612babcc4
parent2e8959db8e143228bfdb79e0cb077f39282a3a14 (diff)
.vimrc: add Ggr command to open git grep in quickfix
Source: https://stackoverflow.com/questions/21931116/getting-git-grep-to-work-effectively-in-vim
-rw-r--r--.vimrc3
1 files changed, 3 insertions, 0 deletions
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!' <q-args> | cw | redraw!"
+" }}}