Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vim unite plugin recreate

I'm using Vim with the Unite plugin.

I have a key mapping in my vimrc file like so,

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

And it works as expected. Only problem is, when I create a new file in the directory and try to search with t the new file doesn't show up. I guess I need to recreate the index that Unite uses for quickly searching the file. I'm not even sure if Unite uses such an index. It's just my guess.

But is there a way to make Unite show the newly created file when I search for it?

like image 313
Jay Avatar asked Sep 18 '13 04:09

Jay


1 Answers

From the 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.
like image 166
Ingo Karkat Avatar answered Sep 19 '22 02:09

Ingo Karkat