I'm getting started using vim for a week and many things still new to me. During the research, I found Unite.vim is extremely great. However, I cannot manage to get this command works:
nnoremap <leader>f :<C-u>Unite -start-insert file_rec/async.
I looked into doc file and it says the following:
file_rec/async Same as |unite-source-file_rec|, but get files asynchronously.
Note: This source requires vimproc.
Note: This source requires "ag" or "find" command.
Note: Windows "find" command is not supported.
I'm using vim windows and don't find the way to have Ag
or find
compatible commands (I guess it would be for mac/linux)
Any instructions would be appreciate. Tks :)
All of this is assuming you have cygwin, and vim with pathogen managing your plugins:
Before you use the
file_rec/async
command, you need to have vimproc, because what happens is Unite runs the search in another process, and then searches through the results with your vim process:Next, ensure that it works by running vi, and staying in command mode and entering:
If that works, then I would advise you to setup your binding in
~/.vimrc
like this:Getting
ag
on your machine might be difficult, as the documentation states that it's "Complicated" and advises you to install a package manager for windows and some libs: https://github.com/ggreer/the_silver_searcher/wiki/WindowsHowever, if you do manage to get
ag
on your machine, here is the configuration I've gotten it to work withUnite.vim
with in my~/.vimrc
: