在 VIM 中配置 fzf 使用 find
https://github.com/junegunn/fzf 是 VIM 常用的文件查找工具。fzf 可以使用 find 或者 https://github.com/sharkdp/fd 作为查找工具,官方的文档里给了很多 fd 的配置,但是 find 的较少。这里提供了一个使用 find 的配置,可以根据自己需要修改:
let $FZF_DEFAULT_COMMAND="find . -regextype egrep
\ \\( -path ./vendor -prune \\) ;; ignore some dirs
\ -o \\( -path ./_site -prune \\)
\ -o \\( -path ./_output -prune \\)
\ -o \\( -path ./.git -prune \\)
\ -o \\( -path ./.svn -prune \\)
\ -o \\( -path ./.tox -prune \\)
\ -o \\( -type f
\ -a \\( -not -regex '.*\.(pyc|pyo)$' \\) ;; ignore some files
\ \\)
\ -print"
