Question

Let's say if I want to open a file in a specific path

C:\Program files\vim\_vimrc

Then what is the best/fast way to open the file with minimal actions or typing?

Was it helpful?

Solution

:e **/filename<tab>
:e **/*name<tab>

Note that this can be a bit slow when traversing large/deep directories.

With the right value for path, wildignore and wildignorecase, the :find command can be awesome:

:find *foo

There are also obviously many plugins if you want, like CtrlP or VimFindsMe.

OTHER TIPS

:e c:\P followed by tab until it hits Program Files, then v followed by tab until you hit vim, then _v followed by tabs until you hit _vimrc.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top