0

In vim you can open all files in present directory with vim *.

All of a specific file type in directory with vim *.py.

Recursively we use vim **/* and vim **/*.py.

To open all files in tabs vim -p *. Recursively vim -p **/*

Is there a way to open specific file types in specific tabs recursively? Lets say all .py in tab 1, all .js files in tab 2, all .html files in tab3?

2

I don't know if there's a way to do what you want, but I've just learned that that's not the way you're supposed to use tabs. This answer (https://stackoverflow.com/questions/102384/using-vims-tabs-like-buffers/103590#103590) was very useful to me, and maybe it can help you too.

  • That link got me clearer about tabs. I have been using vim with just buffers and fuzzy finder but thought I would look into tabs. Now I understand tabs I don't see a purpose for them and can happily continue to work with buffers as I have been hehe. – Darren Haynes Jul 29 '17 at 17:16

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.