Vim: Search for Files with Autocomplete
http://vim.wikia.com/wiki/Find_file开发者_如何学编程s_in_subdirectories
to be really useful to find a file(s) using a wild card. For example, I can execute
:Find edit*.php
and it will find all the PHP files starting with the word edit. What I would really like to have is to somehow index all the files in my working directory so that I can press the key and Vim will auto complete the name for me according to the existing files in that directory. Any idea if this is possible?
Actually, the second part of this question is do you know whether this is possible in Linux terminal? It saves much time to be able to index all the files in your complicated project so that you can go to them quickly.
Regards,
Rafid- Regarding the first part of the question, I strongly suggest you try out Command-T (but note it requires ruby support)
- Regarding the second part, I'm no expert but I know that for example that zsh has a highly configurable completion system. If you just want to list the php files in your project, have a look into the
find
command.
精彩评论