Update g:fzf_preview_window example

This commit is contained in:
Junegunn Choi
2022-09-22 17:30:03 +09:00
parent ecbf9cd98e
commit 333635e25e
2 changed files with 10 additions and 8 deletions

View File

@@ -121,11 +121,12 @@ behavior with `g:fzf_preview_window`. Here are some examples:
" - CTRL-/ will toggle preview window. " - CTRL-/ will toggle preview window.
" - Note that this array is passed as arguments to fzf#vim#with_preview function. " - Note that this array is passed as arguments to fzf#vim#with_preview function.
" - To learn more about preview window options, see `--preview-window` section of `man fzf`. " - To learn more about preview window options, see `--preview-window` section of `man fzf`.
let g:fzf_preview_window = ['right:50%', 'ctrl-/'] let g:fzf_preview_window = ['right,50%', 'ctrl-/']
" Preview window on the upper side of the window with 40% height, " Preview window is hidden by default. You can toggle it with ctrl-/.
" hidden by default, ctrl-/ to toggle " It will show on the right with 50% width, but if the width is smaller
let g:fzf_preview_window = ['up:40%:hidden', 'ctrl-/'] " than 70 columns, it will show above the candidate list
let g:fzf_preview_window = ['hidden,right,50%,<70(up,40%)', 'ctrl-/']
" Empty value to disable preview window altogether " Empty value to disable preview window altogether
let g:fzf_preview_window = [] let g:fzf_preview_window = []

View File

@@ -186,11 +186,12 @@ behavior with `g:fzf_preview_window`. Here are some examples:
" - CTRL-/ will toggle preview window. " - CTRL-/ will toggle preview window.
" - Note that this array is passed as arguments to fzf#vim#with_preview function. " - Note that this array is passed as arguments to fzf#vim#with_preview function.
" - To learn more about preview window options, see `--preview-window` section of `man fzf`. " - To learn more about preview window options, see `--preview-window` section of `man fzf`.
let g:fzf_preview_window = ['right:50%', 'ctrl-/'] let g:fzf_preview_window = ['right,50%', 'ctrl-/']
" Preview window on the upper side of the window with 40% height, " Preview window is hidden by default. You can toggle it with ctrl-/.
" hidden by default, ctrl-/ to toggle " It will show on the right with 50% width, but if the width is smaller
let g:fzf_preview_window = ['up:40%:hidden', 'ctrl-/'] " than 70 columns, it will show above the candidate list
let g:fzf_preview_window = ['hidden,right,50%,<70(up,40%)', 'ctrl-/']
" Empty value to disable preview window altogether " Empty value to disable preview window altogether
let g:fzf_preview_window = [] let g:fzf_preview_window = []