Add g:fzf_vim.options for fzf options shared by all commands (#1624)

- Key hint footer had no off switch. $FZF_DEFAULT_OPTS could not give one,
  since fzf reads it before the options fzf.vim passes
- Merged ahead of the per-call and command-level options, so both still
  take precedence
- '--no-footer' there hides the hints. Documented as fzf-vim-key-hints,
  the footer had no name to look up
- Help TOC also gained Paste key and Show key, missing since those
  sections were added

Close #1623
This commit is contained in:
Junegunn Choi
2026-09-07 11:39:02 +09:00
committed by GitHub
parent dfeb973a54
commit 8a0068127a
3 changed files with 50 additions and 0 deletions
+26
View File
@@ -13,6 +13,10 @@ FZF-VIM - TABLE OF CONTENTS *fzf-vim* *fzf-vim-to
Configuration options of the base plugin |fzf-vim-configuration-options-of-the-base-plugin|
Configuration options for fzf.vim |fzf-vim-configuration-options-for-fzf-vim|
Preview window |fzf-vim-preview-window|
Paste key |fzf-vim-paste-key|
Show key |fzf-vim-show-key|
Key hints |fzf-vim-key-hints|
Global fzf options |fzf-vim-global-fzf-options|
Command-level options |fzf-vim-command-level-options|
Command-level fzf options |fzf-vim-command-level-fzf-options|
List type to handle multiple selections |fzf-vim-list-type-to-handle-multiple-selections|
@@ -269,6 +273,28 @@ another key or turn it off to keep a binding of your own.
let g:fzf_vim.show_key = 'ctrl-o,double-click'
<
Key hints~
*fzf-vim-key-hints*
Most commands show a footer listing the keys they bind, so you can see what
Show, Open, HSplit and the rest are without leaving fzf. It is fzf's footer,
so `--no-footer` hides it:
>
let g:fzf_vim.options = '--no-footer'
<
Global fzf options~
*fzf-vim-global-fzf-options*
*g:fzf_vim.options*
You can set fzf options for all commands with `g:fzf_vim.options`.
`g:fzf_vim.{command}_options` takes precedence over it.
For example, add `--no-footer` to hide the key hints.
>
let g:fzf_vim.options = '--no-footer'
<
Command-level options~
*fzf-vim-command-level-options*