I'd like to learn about using vim with multiple files without using external plugins.
I read another answer that recommends putting the following in our .vimrc
:
set wildmenu
set wildmode=longest:full,full
Now when I use :e <Tab>
I get the following output:
In this case, there is a file at some/path/to/bar.rb
but vim is only showing me some/
.
Some questions:
- From reading the linked answer I thought the list was supposed to be vertical. Why is it still horizontal?
- Is it possible for
wildmenu
to show the full path tosome/path/to/bar.rb
? - Does my
vim .
followed by:e <Tab>
pattern make sense? Is there a better way?
horizontal
, I just read it wrong. But is it possible to expand the paths?getcwd()
path, so simply do:cd /
and it should work like you want.:cd /
help? It puts me in the root of my filesystem. I wantsome/
to be expanded tosome/path/to/foo.rb
while in the menu.<c-d>
to list out the possible completion candidates. This isn't exactly vertical, but might be closer to what you want. You can also use globs to go deeper into your directory structure e.g.:e **/foo.rb<tab>
.