zefei / vim-wintabs

Modern buffer manager for Vim
MIT License
325 stars 25 forks source link

Open several files in several wintabs #18

Closed yggramul closed 6 years ago

yggramul commented 6 years ago

Hi there, first of all, thank you for your work. Wintabs is awesome :-)

I am wondering if there is any way to open several files from the command line so that each of them goes to a different wintab. If I naively run

vim file1 file2 file3

What I get is each file in a buffer but just the first one is shown as a wintab (the others are not shown in the tabline). Is there any way to run

vim -c "some commands" file1 file2 file3

so that vim opens each one on a visible wintab?

Thanks!

Al.

zefei commented 6 years ago

Hey,

This sounds like a very reasonable thing, but there is currently no command to do it. I'll come up with something this week, it shouldn't be very hard.

yggramul commented 6 years ago

Great, thanks! :)

2017-09-20 5:38 GMT+02:00 Zefei Xuan notifications@github.com:

Hey,

This sounds like a very reasonable thing, but there is currently no command to do it. I'll come up with something this week, it shouldn't be very hard.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/zefei/vim-wintabs/issues/18#issuecomment-330736408, or mute the thread https://github.com/notifications/unsubscribe-auth/AemyPtunNNv9YOG_a-L532wX27yp9IqXks5skIi5gaJpZM4PcFTz .

-- Alberto Aparici @cienciabrujula http://twitter.com/cienciabrujula en Twitter

Artículos en El Confidencial https://www.elconfidencial.com/autores/alberto-aparici-1755/ Podcasts de La Brújula de la Ciencia http://www.ivoox.com/podcast-brujula-ciencia_sq_f1171949_1.html Artículos en Jot Down Magazine http://www.jotdown.es/author/alberto-aparici/

zefei commented 6 years ago

I just added a command to open all buffers. So you should be able to do

vim -c 'WintabsAllBuffers' file1 file2 file3

yggramul commented 6 years ago

Thanks a lot! :D