Command-t does not find files

I recently installed the command-t plugin on vim and started playing with it.

But now I feel that it does not find some files.

For example: I have an inc folder, and none of its contents are displayed when I press <leader> t (and enter inc or any file name inside this folder). Other files in the main folder are also not specified.

I tried to flush using CommandTFlush but did not succeed.

Is something missing in my configuration? What can I try to make it work?

Edit: if I went to the inc folder (using :cd ), the files will be listed. Then, if I go back to the parent folder ( :cd .. ), the same files are no longer listed.

+6
source share
2 answers

I set let g:CommandTMaxFiles=50000 in .vimrc and it works now.

There seems to be a problem with the maximum index of the index file.

+14
source

Use: pwd to check what your current working directory is. The -T command only works in the current directory.
I assume that you started vim in a subdirectory of the main tree and why you do not see everything.

+1
source

All Articles