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

时间:2017-09-27 02:23:48

标签: terminal fzf

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

1 个答案:

答案 0 :(得分:2)

在码头上,查看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'