Open all files in directory in vim

Solution 1:

Default tabpagemax is 10 as being pointed out by muru.

you can increase it by setting, for example to 100, to open 100 files max by default

set tabpagemax=100

and then use vim -p *.c Does it have visible performance impact, Need to check

Note: Adding as a answer here as I don't have enough repo to add comment