Why doesn't Command-T in MacVim find a file?

I opened a rails project in MacVim using:

cd ~/development/book-examples/agile_web_dev_rails/worked_examples/depot
mvim .

I am trying to use Command-T to find ./test/fixtures/products.yml; however, I did not succeed. The screenshot below shows that:

  • NERDTree can see ./test/fixtures/products.yml
  • test/Command-T input doesn't even show the directoryfixtures

Any thoughts on why fixtures/products.ymlCommand-T was not found?

Command-T Results

Update

If I open only the directory testin MacVim instead of the entire Rails project, using:

cd ~/development/book-examples/agile_web_dev_rails/worked_examples/depot/test
mvim .

Then Command-T can find fixtures/products.yml.

+3
source share
2 answers

The reason is that you have a lot of files in the directory in which you are located. By default, the plugin reads 10,000 files. You can change this value in your .vimrc:

let CommandTMaxFiles = 20000

, , (, Rails). VIM :cd, . , :pwd.

+8

, Rails.vim, , : Rfixture ( ).

0

All Articles