Frage

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?

War es hilfreich?

Lösung

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

Andere Tipps

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top