vim unity 插件重新创建

标签 vim vim-plugin unite.vim

我正在使用 Vim 和 Unite 插件。

我的 vimrc 文件中有一个键映射,如下所示,

nnoremap <Leader>t :Unite -start-insert file_rec<CR>

它按预期工作。唯一的问题是,当我在目录中创建新文件并尝试使用 t 搜索时,新文件不会显示。我想我需要重新创建 Unite 用于快速搜索文件的索引。我什至不确定 Unite 是否使用这样的索引。这只是我的猜测。

但是有没有办法让 Unite 在我搜索时显示新创建的文件?

最佳答案

来自plugin's documentation :

Q: Some files are not showing up in file_rec(/async) candidates. What's up
with that?

A: You need to update the cache. Press |<Plug>(unite_redraw)| (<C-l>) when
unite is focused.

关于vim unity 插件重新创建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18863641/

相关文章:

linux - 如何在 vim 中导航打开的文件?

python - 如何调试作为 vim 插件一部分的 python 函数?

python - 如何正确运行无限循环并仍然使用 VIM 插件中的缓冲区?

vim - 如何在 Unite.vim 中导航结果(候选人)?

vim - 在Vim中就地编辑文件

vim:用相同数量的新字符串替换子匹配

vim - 使用 vim 和 unite.vim 插件浏览一个巨大的项目

maven - 如何在 vimscript 中遍历目录结构并启动 mvn build?

vim - GoImports 取消 html 语法高亮