mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-09-16 17:01:49 +08:00
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:
@@ -201,6 +201,27 @@ let g:fzf_vim.show_key = 'ctrl-o'
|
||||
let g:fzf_vim.show_key = 'ctrl-o,double-click'
|
||||
```
|
||||
|
||||
#### 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:
|
||||
|
||||
```vim
|
||||
let g:fzf_vim.options = '--no-footer'
|
||||
```
|
||||
|
||||
#### Global fzf 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.
|
||||
|
||||
```vim
|
||||
let g:fzf_vim.options = '--no-footer'
|
||||
```
|
||||
|
||||
#### Command-level options
|
||||
|
||||
```vim
|
||||
|
||||
Reference in New Issue
Block a user