Difficulty finding files in /usr/share/vim/vimcurrent ...
-
anonymous
I've tried :cd / and :cd /usr
I've tried various patterns like:
usvv
but all I get is stuff in /lib/ or other dirs... /usr/ never shows up.
What am I doing wrong?
-
Greg Hurrell
Take a look at the help documentation (
:h command-t
) and particularly these two settings:g:CommandTMaxFiles
g:CommandTMaxDepth
The default settings mean that Command-T will stop scanning after 10,000 files and will never descend more than 15 levels down into a directory hierarchy. You're probably not seeing the stuff in
/usr/
because scanning hits 10,000 files and stops way way way before getting to/usr
.You can up those limits to whatever you want, but bear in mind that while the tool is designed with large project navigation in mind, it's going to be much less useful for navigating absolutely enormous, non-project collections of files (like entire disk drives, for example).
I've done tests with things like a max depth of 100 and a max file count of 500,000, but even if your machine is powerful enough to actually handle this volume of data, the interface simply isn't designed for this kind of problem. "Drilling down" with tab completion is actually a much more appropriate user interface for that kind of problem space.
-
anonymous
Ok. That makes sense. Use the right tool for the right job. Thanks, Wincent.
Reply
This topic is now closed.