My directory structure is like this:

inc/abc/xyz.hpp ...
inc/def/hij.hpp ...

I would effectively like to load all my hpp files into vim buffers for editing.


vim inc/*/*.hpp

didn't work as I expected (vim thought that it had to create a new * directory).

I currently have 258 header files so I need an efficient way to pull all of them up into vim at once. Thx.


nm, I seemed to have found the answer:

:args inc/*/*.hpp

seems to work from inside vim.


vim inc/*/*.hpp should work. If it doesn't then the problem is with the shell you're using.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.