junegunn / fzf.vim

fzf :heart: vim
MIT License
9.66k stars 584 forks source link

How to stop the main window from scrolling? #702

Open mkollaro opened 6 years ago

mkollaro commented 6 years ago

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.

djm158 commented 6 years ago

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.

pietvanzoen commented 5 years ago

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.

DangerDawson commented 4 years ago

Has anyone got to the bottom of this?