When I open
vim with multiple files (
vim f1 f2 ...), how can I make it open them in tabs directly, without using
I'm looking to separate out shell behaviour from vim behaviour, removing
vim-based aliases, etc. That's why I'd prefer not to use aliases, etc. (hence, no
I'm pretty sure this one has been asked on a few SE sites (such as on SO). However, I'm in no position to judge what would be the best way to do this, so I'm also hoping for a note on why a suggested method is good.
For the particular SO post linked:
the accepted answer does
tabpagemax=9999. Call it personal bias, but I see a limit being set to a large number and I think there's something wrong (the way I'd feel if I saw
:au VimEnter * set tabpagemax=9999|sil tab ball|set tabpagemax&vim
the other answer leads to an extra empty tab being opened, while being far more concise.
:autocmd VimEnter * argdo tabedit
I'm hoping for an answer which doesn't have an extra tab opened and doesn't set a limit to a large value (or explain why that's not a bad thing).