DEV Community

loading...

Discussion on: 5 Minutes Vim: CtrlP considered harmful

Collapse
eligoh profile image
Elijah Goh • Edited

I've dropped Ctrl+P altogether and just used this command. Just type and press tab.

:e **/*
Enter fullscreen mode Exit fullscreen mode

Skimmed off some boot time.

Collapse
philt profile image
Phil Thompson

Could you expand on this (haha!)? This is not fuzzy find. If you start typing again omnifunc will disappear. It also takes several seconds to populate. If you work on any decent size project this option does not scale as far as I can tell.

Collapse
eligoh profile image
Elijah Goh

It depends on what you're searching for. For files I'm unsure of, I'll press tab and let fuzzy finder do the work.

// Not very sure of file name but knowing the extension
:e **/MyUnsureFi*.vue

// Knowing which directory
:e app/controllers/**/my_controll
Enter fullscreen mode Exit fullscreen mode

If you scope down the directory, search will be faster. No plugins required. Asterisk only when necessary, scope down when you know the directory. Fast enough for me at least.