Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

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

share|improve this answer

nm, I seemed to have found the answer:

:args inc/*/*.hpp

seems to work from inside vim.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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