tpope / vim-fugitive

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

the cursor doesn't go back to the buffer that opened the status buffer when using "gq" #2280

Closed alarbada closed 5 months ago

alarbada commented 5 months ago

It's a bit annoying. Let's say I have these windows open in a tab:

| A | B | C |

and I open fugitive on window C.

when I close fugitive, the cursor will go to window A, and I have to manually go to C again.

In my case, usually A is NvimTree. I know I'm not really supposed to use this as a vim user, but that's besides the point.

Is this expected behaviour? I think I'm using a recent fugitive version.

tpope commented 5 months ago

All gq is doing is invoking :bdelete. If you have a better suggestion, do share. But I suspect your grievance isn't with Fugitive, it's with Vim (or Neovim).