Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

Unfortunately,

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.

share|improve this question

nm, I seemed to have found the answer:

:args inc/*/*.hpp

seems to work from inside vim.

share|improve this answer

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

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .