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?

有帮助吗?

解决方案

: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.

其他提示

: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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top