Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

When I run :

gvim -p *.xyz

I find that not all files are opened in tabs.

It feels, like a kind of tab limit?

But ! When I try to open unopened with :


it is opened next to previous tabs - it works !

How to make gvim -p ... to open all files without need of opening those above limit manually with :tabnew ?

Btw. Is this limit somewhere written ? Possible to be configured?

share|improve this question
In my experience, only a certain number of tabs are visible on the screen at a given time, but they're all there (just off screen). Could that be the case? What happens if you do a :tabprev from your first tab? –  gdw2 Feb 2 '12 at 18:15
It is not that. I know :tabprev :tabnext. There are not there. There are 10 tabs maximum when I open with gvim -p. If I want more I need to add them manually with : :tabnew. Problem is present in vim -p as well. –  Grzegorz Wierzowiecki Feb 3 '12 at 13:19
As I haven't (recently) experienced this 10-tab phenominon, I decided to look at my (short) vimrc and found something that might work... see my answer. –  gdw2 Feb 3 '12 at 16:42

1 Answer 1

up vote 14 down vote accepted

Put this in your .vimrc:

set tabpagemax=100

share|improve this answer
Thank you - now it works as I wanted :) –  Grzegorz Wierzowiecki Feb 3 '12 at 17:23

Your Answer


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.