如何在 fzf 中启用每个命令的历史记录?

How to enable per-command history in fzf?

在 fzf 中,默认情况下,CTRL-P 和 CTRL-N 必然会在项目列表中上下移动。我怎样才能绑定到以前的历史和下一个历史呢?

从码头检查 global options:

" Enable per-command history.
" CTRL-N and CTRL-P will be automatically bound to next-history and
" previous-history instead of down and up. If you don't like the change,
" explicitly bind the keys to down and up in your $FZF_DEFAULT_OPTS.
let g:fzf_history_dir = '~/.local/share/fzf-history'