Hacker News new | ask | show | jobs
by no_protocol 3136 days ago
There are many ways, depending on what you specifically need.

For the most basic command that will probably work immediately, just start up vim with multiple files like so:

    vim -p file1 file2
This will open file1 and file2 in separate vim tabs.

But vim tabs may not behave the way you would expect them to coming from other programs. You might prefer to just list all the buffers within one window instead. There are many plugins dealing with buffer management on the vim wiki and elsewhere. Here are two I found with a Google search that look at a glance like they might work [0], [1] (haven't tried, just looked at the page briefly)

[0]: https://github.com/ap/vim-buftabline

[1]: https://github.com/bling/vim-bufferline

1 comments

I've steered away from using actual tabs as Vim uses them becauses I wanted to follow the buffer/window/tab mentality Vim follows. It's a logical setup.

I will take a look at these. I think that because I've got lightline installed I'll have to either integrate one of these or just go for one on it's own or something.