我正在使用FuzzyFinder,并想知道如何指示FuzzyFinder排除它搜索的文件.现在我修改了插件代码,但必须有一个更简单的方法.
我想排除.class文件在结果中弹出.有关如何指示FuzzyFinder跳过这些文件的任何提示/提示?
Ben*_*oit 20
let g:fuf_file_exclude = '\v\~$|\.o$|\.exe$|\.bak$|\.swp$|\.class$'
Run Code Online (Sandbox Code Playgroud)
用于:help fuf-options了解更多详情.
在Benoit的帮助下:
"FuzzyFinder should ignore all files in .gitignore
let ignorefile = ".gitignore"
if filereadable(ignorefile)
let ignore = '\v\~$'
for line in readfile(ignorefile)
let line = substitute(line, '\.', '\\.', 'g')
let line = substitute(line, '\*', '.*', 'g')
let ignore .= '|^' . line
endfor
let g:fuf_coveragefile_exclude = ignore
endif
Run Code Online (Sandbox Code Playgroud)
在第八天,上帝被一种可怕的噪音惊醒,他确实创造了一个脚本来找到他干扰的主题.于是发现了虫子,他就击杀了它们.再次好了.