mirror of https://github.com/junegunn/fzf
[vim] Let users decide to use --height instead of terminal buffer
Commit 85ae745910
forced the use of terminal buffers whenever they're
available to improve consistency and avoid confusion. This, however, has
drawbacks:
* Using a terminal buffer is slightly slower (not noticeable to most
people but visible to me).
* It breaks certain features of fzf.vim, requiring workarounds like
https://github.com/junegunn/fzf.vim/pull/1363. And, unfortunately, it
also breaks https://github.com/junegunn/fzf.vim/pull/1196 (a fix for
:Snippets in insert-mode which relies on `<Cmd>` and the cursor
staying behind the end-of-line) which I have no workaround for yet.
This commit adds `g:fzf_prefer_height` to optionally restore the old
behaviour.
pull/2723/head
parent
9cb7a364a3
commit
f79e84e368
Loading…
Reference in New Issue