[vim] Let users decide to use --height instead of terminal buffer #2723
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Commit 85ae745 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 [Commands] Fix hit-enter/more-prompt with terminal buffer fzf fzf.vim#1363. And, unfortunately, it also breaks [Snippets] Fix entering insert mode and handling of word under cursor fzf.vim#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.