Giter Site home page Giter Site logo

Comments (3)

ap avatar ap commented on August 20, 2024 2

I don’t know that it’s impossible; it could be that sufficiently clever hackery can make it work, as long as you are willing to give up Vim tabs completely forever.

Then the basic approach is to have as many extra Vim tabs as you have buffers. You can then intercept the tab change events caused by the user clicking on the tabline, and switch buffers accordingly.

The problem is making sure that the buffer and window management works exactly like it would if you only had a single Vim tab. E.g. keeping Vim from creating or not-closing empty buffers in various circumstances.

I got most of the way there with several different approaches, each with another combination of tricks to create the right illusion, but each approach had its own cases in which the illusion broke. I didn’t manage to make any of them work perfectly. In the end I gave up.

Someday in the future I may try again, and one of these attempts may even succeed.

from vim-buftabline.

ap avatar ap commented on August 20, 2024 1

Yes, it would be nice. But it’s very difficult to make it work without glitches. And turning on this feature would make it impossible to use regular Vim tabs at all. If you’re interested, you can try picking up the krazy branch and finishing what I started, and I shall be happy to look at the results. But I do not intend to put further work into it myself, sorry.

from vim-buftabline.

adelarsq avatar adelarsq commented on August 20, 2024

It's more difficult than I thought vim-airline/vim-airline#369
Anyway, thanks for the quick response.

from vim-buftabline.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.