How often do you find yourself looking for a pattern in files in a git repo, then reviewing and fixing them in vim? Do you wish there was a more efficient way than opening files one by one manually? With fugitive, from vim, you can `:Ggrep pattern -- pathspec` to find matches, then Enter to go back to the editor and `:cw` to open a quickfix window with them. Enter on one of them opens the right file at the right line so you can review/edit.

· · Web · 2 · 0 · 1

It’s so great that I don’t even understand why it took me so long to look up how to do it. I kept thinking there must be a better way, but never checked if there indeed was until a month or so ago. I’ve used it **a lot** since then.

And it just occurred to me that to better reach the people that would be interested in this, I should have used and maybe

Sign in to participate in the conversation
La Quadrature du Net - Mastodon - Media Fédéré est une serveur Mastodon francophone, géré par La Quadrature du Net.