Author SHA1 Message Date
Junegunn Choi 0097439b74 Show no preview for an entry with no address
Ex mode starts on the last line, so the preview reported the end of the file as
the tag, while every other path refuses such an entry.
2026-09-28 07:07:45 +09:00
Junegunn Choi b4a045f8b4 Put the starting window back before the action opens the tag
The loop opens each entry of a multi-selection in the starting window, so giving
the survivor's action that window left it on the tag's file, and 'ctrl-v' showed
the tag twice. Restore buffer and view first, as the quickfix branch does, then
open where the key asks and go to the line the entry reached.
2026-09-28 06:44:54 +09:00
Junegunn Choi 21aacd5304 Give the action the last tag standing in a multi-selection
Entries opened in the loop take the action only when one was selected, so
refusing the others left the survivor opened with ':edit' and the key ignored.
2026-09-28 06:04:49 +09:00
Junegunn Choi bbe5cacb28 Find the ';"' that ends an address by reading the address
Taking the first ';"' before a tab could land inside the pattern: a line holding
';"' followed by a tab, such as a comment, cut the address there and left the
real tab unescaped, so the entry was refused.
2026-09-28 06:04:49 +09:00
Junegunn Choi 14f808b543 End an address fragment at a tab
On the :Tags path the rest of the line carries the extension fields, and an
unterminated pattern took them into the search, so '/^foo' became
'/^foo<Tab>f<Tab>file:' and found nothing. A helptags address, the case the
fragment is for, holds no tab.
2026-09-28 05:33:53 +09:00
Junegunn Choi 319f5ac437 Rewrite the tabs of an address only where it ends in ';"'
Without the terminator nothing says which tab belongs to the pattern and which
separates a column, so a tag command that adds columns without one had its
address merged with them and refused.
2026-09-28 05:33:53 +09:00
Junegunn Choi b268241f4a Keep a tab inside a BTags pattern from cutting the address
ctags leaves a tab as it found it, so splitting the source line on tabs left
'/^' for a tab-indented definition, which matched whatever line came next, and
'/^static int g = 1;' for a tab later on, which only happened to match. Write
the tab as '\t', which matches the same text and keeps the address one field.

:BTags with 'ctags --excmd=pattern' now reaches every tag in a tab-indented
file, where the address was a fragment before.
2026-09-28 05:01:20 +09:00
Junegunn Choi 3e34f1dc6d Name a too-short Tags entry the way BTags does
s:strip(parts[0]) on an empty line raises E684, which the loop then reports in
place of the message.
2026-09-28 05:01:19 +09:00
Junegunn Choi 81afa1b9d9 Take the carriage return off a tag address
A tags file with CRLF endings and no ';"' terminator, as 'ctags --format=1'
writes on Windows, left a stray CR on the address, and s:strip() counts only
spaces and tabs. Every entry in such a file was refused.
2026-09-28 04:24:49 +09:00
Junegunn Choi 74cab39bbf Name the tag when a BTags entry is too short to hold an address
A source of fewer than three columns raised E684 from parts[2], which the loop
reported in place of the message the line below it gives.
2026-09-28 04:01:19 +09:00
Junegunn Choi 0ce4cca7bd Leave the cursor alone when no tag was opened
Refusing the address of a single selected tag leaves the quickfix list empty,
and 'normal! ^zvzz' then moved the cursor in whatever buffer the user was in.
2026-09-28 03:36:17 +09:00
Junegunn Choi 747cd594a2 Do not run backticks in a file name from a tags file
expand() globs and runs backticks, so an entry naming '`touch FILE`.c' ran the
command, and on CTRL-O it ran even for an address the new check then refused.
fnamemodify(':p') instead, as s:in_dir already does for the same reason. It
gives up '$VAR' in a name, which no tag generator writes.

The address is now checked before the name is touched, so nothing happens at all
for an entry that will not be used.
2026-09-28 03:10:41 +09:00
Junegunn Choi b1c03ea0ef Drop an unreachable newline guard
'read' without '-d' stops at the first newline, so EXCMD never holds one, and a
newline inside the ':execute' string stays in the sandbox anyway.
2026-09-28 02:40:06 +09:00
Junegunn Choi ba458b129e Say why CTRL-O did nothing on a refused address
The sinks name the tag; the Show callback returned without a word, so the key
looked broken.
2026-09-28 02:40:06 +09:00
Junegunn Choi 8da2aa53ab Take an address fragment only where the whole line is in hand
:BTags reads the address field on its own, so a tab inside a ctags pattern
leaves a fragment such as '/^', which matched whatever line came next and
recorded it in the quickfix list. ctags always terminates its patterns, so on
the field alone a fragment is the cut and is refused. The '/*:Ag*' of a helptags
file has no terminator and still goes through, :Tags having the whole line.
2026-09-28 02:40:05 +09:00
Junegunn Choi 8039b2747c Hand the preview address to Vim as an argument again
Through the environment it depended on WSLENV reaching a Windows vim.exe, and
the guard for that turned a missing address into a blank preview. An argument
always arrives. Doubling the quotes keeps it one ':execute' string, so the
sandbox still covers all of it.
2026-09-28 01:57:21 +09:00
Junegunn Choi adcdb91d70 Search a tag address with case sensitivity
Builtin tag jumps clear 'ignorecase' along with setting 'nomagic' and
'wrapscan'. Without it, ':Tags' on '/^foo$/' stopped at a line holding 'FOO'
with 'ignorecase' set, and wrote that line into the quickfix list.

'smartcase' only applies while 'ignorecase' is on, so it needs nothing.
2026-09-28 01:57:21 +09:00
Junegunn Choi 32baf162c0 Say what a lone address fragment does
The comment read as if every fragment were dropped. One with nothing before it
cannot be told apart from a helptags address, so it goes through as is.
2026-09-28 01:29:04 +09:00
Junegunn Choi 5ad2fa7bed Show no preview when the address does not reach Vim
Ex mode starts on the last line, so an empty $FZFVIM_EXCMD centered the preview
at the end of the file and said nothing. Quit with an error instead, which the
existing '|| exit' turns into a blank preview.
2026-09-28 01:29:03 +09:00
Junegunn Choi 777e783382 Name the preview variable in WSLENV
WSL shares only the variables listed there with a Windows vim.exe, as
s:preview_cmd already does for MSWINHOME. Untested, no WSL here.
2026-09-28 00:49:38 +09:00
Junegunn Choi 63fb5c974f Drop a tag address part cut short by a tab
:BTags reads the address field on its own, so ctags writing a tab inside a
pattern leaves it unterminated: '--excmd=combine' gives '5;/^int', whose
fragment matched line 7 instead of 5, silently and with a quickfix item to
match. Keep the parts that did parse, so the line number still stands.

An unterminated pattern is still taken on its own, being the whole address in a
helptags file.
2026-09-28 00:49:38 +09:00
Junegunn Choi 2b6e8b2132 Sandbox the address the same way on the Show paths
They passed ':sandbox' as a modifier, which the address check makes safe today
but which stops covering anything that ever slips past it.
2026-09-28 00:08:50 +09:00
Junegunn Choi 81ae642d5b Keep the whole tag address inside the preview sandbox
':sandbox' is a modifier and covers only the command up to the first '|', so an
address like '/pat/|!touch file' still ran the shell command as soon as an entry
was highlighted. ':execute' on a value taken from the environment keeps all of
it inside the sandbox, and takes the address out of the '-c' string as well.

:Helptags previews a plugin's doc/tags through the same script.
2026-09-28 00:08:49 +09:00
Junegunn Choi 35e8ef8e20 Search a BTags address as the other paths do
The sink left 'magic' and 'wrapscan' at the user's values, so a ctags pattern
holding '*' or '.' could land on an earlier line than the CTRL-O preview shows,
and a failing address threw out of the loop, dropping the rest of a
multi-selection.
2026-09-27 23:48:25 +09:00
Junegunn Choi a4979fdcd4 Refuse a tag entry before opening its file
A refused address left the buffer on that entry's file while contributing no
quickfix item, so a multi-selection lost its valid matches. Name the refused
tag as well, since nothing happens otherwise.
2026-09-27 23:47:01 +09:00
Junegunn Choi 9705771895 Run the tag address in a sandbox in the preview too
A preview runs as soon as an entry is highlighted, so a crafted tags file did
not even need to be selected to get a shell command out of
'vim -c "silent {excmd}"'.

The preview Vim starts with '-u NONE' and exits right after, so the sandbox
alone is enough there; nothing it still permits outlives the process.
2026-09-27 23:20:27 +09:00
Junegunn Choi c228c70ee3 Allow an unterminated pattern after earlier address parts
A field holding a tab arrives cut short, so :BTags with 'ctags
--excmd=combine' sees '2;/^int tabbed(void) {' and stopped jumping. The last
part runs to the end of the line, taking any '|' or ';' with it, so it still
cannot chain a command.
2026-09-27 21:37:04 +09:00
Junegunn Choi a5717367fc Do not add a quickfix item for a refused tag address
The cursor has not moved, so the item repeated the previous entry's line and
text. :BTags already skips such an entry.
2026-09-27 21:24:52 +09:00
Junegunn Choi 88b0ae41c8 Check the address on the BTags paths too
The sink and the CTRL-O Show callback passed the raw field into the Ex command.
A custom tag command can emit any address, so put it through the same check as
:Tags. The BTags source aligns its columns, hence the strip.
2026-09-27 20:59:01 +09:00
Junegunn Choi d538da05b6 Do not run arbitrary Ex commands from tag addresses
A tags file can come from an untrusted source, and its address field can hold
any Ex command, which :Tags, :BTags and their CTRL-O Show callback ran as is.

- Take only a line number or a search pattern, chained with ';' for
  '--excmd=combine' and cut at the ';"' terminator as Vim's find_extra() does.
  A pattern left unterminated runs to the end of the line, taking any '|' or
  ';' with it, so it cannot chain a command
- Run the address in a sandbox, as builtin tag jumps do since Vim 6.0

Close #1626
2026-09-27 20:52:29 +09:00
Junegunn Choi a630ef91e1 Fix UTF-8 corruption when pasting at multibyte character
col('.') is the first byte of the character under the cursor, so splitting
the line there left one byte in head and the rest in tail. Advance past the
whole character instead.

Close #1627
2026-09-26 17:04:35 +09:00
Junegunn Choi 8a0068127a 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
2026-09-07 11:39:02 +09:00
4 changed files with 189 additions and 27 deletions
+21
View File
@@ -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
+129 -26
View File
@@ -400,6 +400,9 @@ function! s:fzf(name, opts, extra)
let extra = copy(extra)
let eopts = has_key(extra, 'options') ? remove(extra, 'options') : ''
let merged = extend(copy(a:opts), extra)
" Global fzf options
call s:merge_opts(merged, s:conf('options', []))
call s:merge_opts(merged, eopts)
" Command-level fzf options
@@ -495,7 +498,10 @@ function! fzf#vim#paste(items) abort
return s:warn('Cannot paste into a nomodifiable buffer')
endif
let line = getline('.')
let idx = empty(line) ? 0 : col('.')
" col('.') is the first byte of the character under the cursor. Skip the
" whole character so that a multibyte character is not split in half.
let cursor = col('.') - 1
let idx = empty(line) ? 0 : cursor + strlen(matchstr(line, '.', cursor))
let head = strpart(line, 0, idx)
let tail = strpart(line, idx)
let pad = (!empty(head) && head !~ '\s$') ? ' ' : ''
@@ -528,6 +534,49 @@ function! s:execute_silent(cmd)
silent keepjumps keepalt execute a:cmd
endfunction
" A tag address can be any Ex command, and a tags file can come from an
" untrusted source, so run it in a sandbox as a builtin tag jump does. ':sandbox'
" as a modifier only covers the command up to the first '|', so hand the address
" to ':execute', which keeps all of it inside the sandbox
function! s:execute_tag_address(excmd)
silent keepjumps keepalt sandbox execute a:excmd
endfunction
" The same, as a command for a win_execute() list
function! s:sandboxed(cmd)
return 'sandbox execute '.string(a:cmd)
endfunction
" Address of a tag, given the rest of the line after the file name, or, with
" 'whole' off, the address field alone as :BTags reads it. Only the forms a tags
" file is meant to hold, a line number and a search pattern, chained with ';' for
" '--excmd=combine' and cut at the ';"' terminator as Vim's find_extra() does.
" Returns an empty string for anything else, which is then not run.
"
" A pattern holding a tab reaches :BTags cut short. Where earlier parts parsed,
" keep those, since a line number beats half a pattern. A fragment on its own is
" an address only where the whole line is in hand, as in a helptags file, whose
" '/*:Ag*' carries no terminator. ctags always terminates, so on the field alone
" a fragment is the cut, and it would match some other line. Running to the end
" of the line it takes any '|' or ';' with it, so it cannot chain a command.
let s:tag_address_part = '\%(\d\+\|/\%(\\.\|[^/\\]\)*/\|?\%(\\.\|[^?\\]\)*?\)'
let s:tag_address_open = '\%(/\%(\\.\|[^/\\\t]\)*\|?\%(\\.\|[^?\\\t]\)*\)'
function! s:tag_address(rest, whole)
" :BTags aligns its columns, so its field arrives padded, and a tags file with
" CRLF endings leaves a carriage return, which s:strip() keeps
let rest = substitute(a:rest, '^[ \t\r]*\|[ \t\r]*$', '', 'g')
let chain = '^'.s:tag_address_part.'\%(;'.s:tag_address_part.'\)*'
let address = matchstr(rest, chain.'\ze\%(;"\|$\)')
if !empty(address)
return address
endif
let address = matchstr(rest, chain.'\ze;[/?]')
if !empty(address)
return address
endif
return a:whole ? matchstr(rest, '^'.s:tag_address_open.'\ze\%(\t\|$\)') : ''
endfunction
" [key, [filename, [stay_on_edit: 0]]]
function! s:action_for(key, ...)
let Cmd = get(get(g:, 'fzf_action', s:default_action), a:key, '')
@@ -675,15 +724,15 @@ function! s:show_entry(winid, bufnr, dir, kind, entry) abort
" 'acd' would move the cwd on the first open, and s:ag_to_qf resolves a
" relative match against it. Tag addresses are searched with the settings
" s:tags_sink uses.
let [magic, wrapscan, acd] = [&magic, &wrapscan, &acd]
let [magic, wrapscan, acd, ic] = [&magic, &wrapscan, &acd, &ignorecase]
let &acd = 0
if a:kind ==# 'tags' || a:kind ==# 'btags'
let [&magic, &wrapscan] = [0, 1]
let [&magic, &wrapscan, &ignorecase] = [0, 1, 0]
endif
try
call s:goto_entry(a:winid, a:bufnr, a:dir, a:kind, entry)
finally
let [&magic, &wrapscan, &acd] = [magic, wrapscan, acd]
let [&magic, &wrapscan, &acd, &ignorecase] = [magic, wrapscan, acd, ic]
endtry
endfunction
@@ -723,23 +772,32 @@ function! s:goto_entry(winid, bufnr, dir, kind, entry) abort
if len(parts) < 3
return
endif
let excmd = matchstr(join(parts[2:-2], '')[:-2], '^.\{-}\ze;\?"\t')
let excmd = s:tag_address(join(parts[2:-2], '')[:-2], 1)
if empty(excmd)
return s:warn('Unsupported tag address: '.s:strip(parts[0]))
endif
let relpath = parts[1][:-2]
let path = relpath =~ (s:is_win ? '^[A-Z]:\' : '^/')
\ ? relpath : join([fnamemodify(parts[-1], ':h'), relpath], '/')
let path = expand(path, 1)
if empty(excmd) || !filereadable(path)
" fnamemodify(), not expand(), which runs backticks in the name a tags file
" gives, as s:in_dir says
let path = fnamemodify(path, ':p')
if !filereadable(path)
return
endif
let cmds = s:edit_cmds(a:winid, path)
\ + ['keepjumps '.excmd, 'normal! ^zvzz']
\ + [s:sandboxed('keepjumps '.excmd), 'normal! ^zvzz']
elseif a:kind ==# 'btags'
let parts = split(entry, "\t")
if len(parts) < 3 || !bufexists(a:bufnr)
return
endif
let excmd = s:tag_address(parts[2], 0)
if empty(excmd)
return s:warn('Unsupported tag address: '.s:strip(parts[0]))
endif
let cmds = ['keepalt keepjumps hide buffer '.a:bufnr,
\ 'keepjumps '.parts[2], 'normal! zvzz']
\ s:sandboxed('keepjumps '.excmd), 'normal! zvzz']
elseif a:kind ==# 'marks'
" A lowercase mark is local to the buffer the run started on
let mark = matchstr(entry, '^\s*\zs\S')
@@ -1594,6 +1652,17 @@ endfunction
" ------------------------------------------------------------------
" BTags
" ------------------------------------------------------------------
" ctags leaves a tab inside a pattern as it found it, and splitting the line on
" tabs would cut the address short, leaving a fragment that matches some other
" line. '\t' matches the same text and keeps the field the line's third. Only the
" ';"' terminator says where the address ends, so a line without one is left as
" it is rather than guessed at
function! s:tabs_in_address(line)
return substitute(a:line, '^\%([^\t]*\t\)\{2}\zs'.s:tag_address_part
\ .'\%(;'.s:tag_address_part.'\)*\ze;"\t',
\ '\=substitute(submatch(0), "\t", ''\\t'', "g")', '')
endfunction
function! s:btags_source(tag_cmds)
if !filereadable(expand('%'))
throw 'Save the file first'
@@ -1610,7 +1679,8 @@ function! s:btags_source(tag_cmds)
elseif empty(lines)
throw 'No tags found'
endif
return map(s:align_lists(map(lines, 'split(v:val, "\t")')), 'join(v:val, "\t")')
return map(s:align_lists(map(map(lines, 's:tabs_in_address(v:val)'),
\ 'split(v:val, "\t")')), 'join(v:val, "\t")')
endfunction
" Position to return to with CTRL-T. Captured before fzf opens, because the
@@ -1646,21 +1716,39 @@ function! s:btags_sink(from, lines)
let tagname = ''
call s:action_for(a:lines[0])
let qfl = []
for line in a:lines[1:]
let parts = split(line, "\t")
call s:execute_silent(parts[2])
call add(qfl, {'filename': expand('%'), 'lnum': line('.'), 'text': getline('.')})
if empty(tagname)
let tagname = s:strip(parts[0])
endif
endfor
try
" Searched with the settings s:tags_sink and the CTRL-O callback use, and a
" failing address must not drop the rest of the selection
let [magic, &magic, wrapscan, &wrapscan, ic, &ignorecase] =
\ [&magic, 0, &wrapscan, 1, &ignorecase, 0]
for line in a:lines[1:]
try
let parts = split(line, "\t")
let excmd = len(parts) > 2 ? s:tag_address(parts[2], 0) : ''
if empty(excmd)
throw 'Unsupported tag address: '.s:strip(get(parts, 0, line))
endif
call s:execute_tag_address(excmd)
call add(qfl, {'filename': expand('%'), 'lnum': line('.'), 'text': getline('.')})
if empty(tagname)
let tagname = s:strip(parts[0])
endif
catch /^Vim:Interrupt$/
break
catch
call s:warn(v:exception)
endtry
endfor
finally
let [&magic, &wrapscan, &ignorecase] = [magic, wrapscan, ic]
endtry
if len(qfl) > 1
" Go back to the original position
normal! g`'
" Because 'listproc' will use 'cfirst' to go to the first item in the list
call s:fill_quickfix('btags', qfl)
else
elseif len(qfl) == 1
normal! zvzz
endif
if !empty(tagname)
@@ -1714,21 +1802,27 @@ function! s:tags_sink(from, lines)
let [key; list] = a:lines
try
let [magic, &magic, wrapscan, &wrapscan, acd, &acd] = [&magic, 0, &wrapscan, 1, &acd, 0]
let [magic, &magic, wrapscan, &wrapscan, acd, &acd, ic, &ignorecase] =
\ [&magic, 0, &wrapscan, 1, &acd, 0, &ignorecase, 0]
for line in list
try
let parts = split(line, '\t\zs')
let excmd = matchstr(join(parts[2:-2], '')[:-2], '^.\{-}\ze;\?"\t')
let excmd = s:tag_address(join(parts[2:-2], '')[:-2], 1)
if empty(excmd)
throw 'Unsupported tag address: '.s:strip(get(parts, 0, line))
endif
let base = fnamemodify(parts[-1], ':h')
let relpath = parts[1][:-2]
let abspath = relpath =~ (s:is_win ? '^[A-Z]:\' : '^/') ? relpath : join([base, relpath], '/')
" fnamemodify(), not expand(), which runs backticks in the name
let abspath = fnamemodify(abspath, ':p')
if len(list) == 1
call s:action_for(key, expand(abspath, 1))
call s:action_for(key, abspath)
else
call s:open(expand(abspath, 1))
call s:open(abspath)
endif
call s:execute_silent(excmd)
call s:execute_tag_address(excmd)
call add(qfl, {'filename': expand('%'), 'lnum': line('.'), 'text': getline('.')})
if empty(tagname)
let tagname = s:strip(parts[0])
@@ -1740,7 +1834,7 @@ function! s:tags_sink(from, lines)
endtry
endfor
finally
let [&magic, &wrapscan, &acd] = [magic, wrapscan, acd]
let [&magic, &wrapscan, &acd, &ignorecase] = [magic, wrapscan, acd, ic]
endtry
if len(qfl) > 1
@@ -1754,7 +1848,16 @@ function! s:tags_sink(from, lines)
call s:action_for(key, qfl[0].filename, 1)
call s:fill_quickfix('tags', qfl)
else
elseif len(qfl) == 1
" Entries opened in the loop take the action only when one was selected, so
" the last one standing of a multi-selection still owes the key its action.
" The loop opened it in the starting window, which goes back as it was first
if len(list) > 1
call s:execute_silent('b '.buf)
call winrestview(view)
call s:action_for(key, qfl[0].filename)
call cursor(qfl[0].lnum, 1)
endif
normal! ^zvzz
endif
if !empty(tagname)
+13 -1
View File
@@ -30,9 +30,21 @@ else
exit 1
fi
# Ex mode starts on the last line, so an entry with no address would report the
# end of the file as the tag. Every other path refuses such an entry
if [ -z "${EXCMD}" ]; then
exit 1
fi
# The address comes from a tags file, which can be untrusted, and a preview runs
# as soon as an entry is highlighted. Sandboxed as a builtin tag jump is, so that
# it cannot run a shell command or touch a file. ':sandbox' on its own only covers
# the command up to the first '|', so hand the whole address to ':execute' as a
# string literal, doubling the quotes in it
EXCMD_LITERAL=${EXCMD//\'/\'\'}
CENTER="$("${VIMNAME}" -R -i NONE -u NONE -e -m -s "${FILE}" \
-c "set nomagic" \
-c "silent ${EXCMD}" \
-c "silent sandbox execute '${EXCMD_LITERAL}'" \
-c 'let l=line(".") | new | put =l | print | qa!')" || exit
START_LINE="$(( CENTER - FZF_PREVIEW_LINES / 2 ))"
+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*