/vim-gitgreppopup

Git grep in a popup window

Primary LanguageVim Script

vim-gitgreppopup

Let's you see git grep in a popup window and navigate to that file with that line number. Currently only works with vanilla vim >= 8.2 and not neovim. Issue.

out.gif

Install

with vim-plug:

Plug 'lilja/vim-gitgreppopup'

Init the function:

let g:gitgreppopup_disable_syntax = 1

Usage

:GitGrep <term>

where <term> is send directly to git grep <term>.

Performance

It would appear that syntax highlighting makes this popup a bit sluggish. There is a param called g:gitgreppopup_disable_syntax that will temporarily disable syntax and will reenable it after the popup is closed. For me it has decreased the amount of slowness.

An issue has been created for this in the vim repo