53

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 :

:tabnew

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?

1 Answers1

82

Put this in your .vimrc (usually located at ~/.vimrc):

set tabpagemax=100
gdw2
  • 936
  • 2
    I really need to get this committed into my dotfiles because I forget about it every time I'm on a new machine and wanting to edit a bunch of files in tabs and I only get 8-10 the first pass and doing :next a bunch of times to go through all the buffers that weren't opened in tabs is terribly annoying. – dragon788 May 12 '20 at 14:27