When I search some file with command-T it often failes to find it because I’m not in the right directory, so I have to change the directory.
Is it possible to set that command-T will search first in the directories that are bookmarked in Nerdtree or somewhere else?
I could change the directory to / but this search very large scope of files. When I change the dir to my home directory and I’m looking for something ordinary like .bashrc I will find rather many files that are located under .wine directory.
In 99 % of time I need to search files in project directories that I actively work with. Can I set these directories in some preferences?
According to the documentation you can exclude directories from your search:
So if you wanted to exclude a backup dir, you would write:
in your .vimrc
In addition, to ignore dotfiles/dotdirs you can look into these options:
These allow you to:
– ignore dotfiles completely;
– stop searching recursively in dotdirs;
– specify at what depth should Command-T stop scanning.
I found this information in the author’s git, but you can probably see this document by issuing in vim:
(or a similar name)
I did not see any reference to preferences or bookmarks in the plugin.
However if you start vim by opening a file in said project directory you might want to add this line to your .vimrc:
This option will set on startup your directory to the current file’s directory.