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

问题描述:

在fzf中,默认情况下,CTRL-P和CTRL-N绑定在项目列表中上下移动。那么我怎样才能将历史和下一个历史绑定在一起呢?如何在fzf中启用每条命令的历史记录?

从码头,检查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'