Is there something similar for vim? Or do you guys have any hacks,
shell scripts for achieving this? Pressing a key combination, typing
in some letters, hitting enter and you opened another file?
Well, Vim has some similar abilities, though I'm not sure if
they quite fit the bill for what you want. Some components:
If your cursor is on a filename in your 'path' setting, you
can use "gf"
:help gf
to "goto file". There's a sibling for splitting a window,
using ^W followed by "f"
:help ^W_F
If, however, you want to complete a file name, you can use
<tab> or ^D at the command line, so you can type something like
:sp /h
followed by <tab> which will expand to
:sp /home/
to which you can type "b" and hit tab to expand to
:sp /home/benjamin
etc, etc, etc. To read more about this, you can look at
:help c_ctrl-d
:help c_<tab>
Alternatively, there's a ":find" command which will find a
given file in your path...however, at least as of version
6.4, the ability to expand matching items from the path is
still on the todo list, AFAICT.
Hope this gives you some leads, even if it's not quite
exactly what you were looking for.
-tim