tpope / vim-fugitive

fugitive.vim: A Git wrapper so awesome, it should be illegal
https://www.vim.org/scripts/script.php?script_id=2975
20.01k stars 1.01k forks source link

FugitivePager is triggered for non-fugitive BufReadPost Events #2283

Closed AndyMcAliley closed 7 months ago

AndyMcAliley commented 7 months ago

The FugitivePager User autocommand is triggered when any new buffer is loaded, not only fugitive temp files. For example:

autocmd User FugitivePager echom 'Just triggered FugitivePager'

Then try opening a file. The message is triggered on :e <anyexistingfile>, or :G, or anytime a new buffer is loaded, I think.