fzf.vim icon indicating copy to clipboard operation
fzf.vim copied to clipboard

How to stop the main window from scrolling?

Open mkollaro opened this issue 8 years ago • 3 comments

  • Category
    • [x] Question
    • [ ] Bug
    • [ ] Suggestion
  • OS
    • [ ] Linux
    • [ ] macOS
    • [ ] Windows
    • [ ] Etc.
  • Vim
    • [ ] Vim
    • [ ] Neovim

When I run a command like :History, the text in my other windows scrolls up. For example, if the top of my screen shows line 5 of some file, after the command the top of the screen will show line 30. This happens even in vanilla vim when running e.g. :ls, so it's not really an issue with fzf, but I was hoping you could help me out. It makes using fzf very annoying on a larger screen, because the text on the whole screen gets moved around and redrawn. Is there any way to stop this from happening? I want fzf to draw on "top" of the text of my window, not move it out of the way.

mkollaro avatar Sep 21 '18 13:09 mkollaro

I see the same thing, can't seem to figure out how to keep this from happening. I've noticed the integration is better and this doesn't occur in gvim as opposed to regular old terminal vim.

djm158 avatar Sep 26 '18 18:09 djm158

This is mainly why I'm still using CtrlP, which opens the list inside vim. I think why FZF has this behaviour is because it opens fzf outside of vim. Judging by how it behaves in the command line this seems quite integrated into how fzf was built. So I feel skeptical that this will be priority enough to fix.

pietvanzoen avatar Dec 12 '18 10:12 pietvanzoen

Has anyone got to the bottom of this?

DangerDawson avatar Apr 14 '20 16:04 DangerDawson