質問

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