Code Monkey home page Code Monkey logo

Comments (5)

zefei avatar zefei commented on August 13, 2024 1

Support for vim sessions should be out of the box as long as you have the correct settings for vim session: sessionoptions should contain 'globals'. I'm not sure if vim-obsession is an edge case.

Let me know if this doesn't work for you. I'll need a minimal repro vimrc from you if that's the case.

from vim-wintabs.

dylan-chong avatar dylan-chong commented on August 13, 2024 1

Nice ! Actually works perfectly!!

I was using obsession because that was the recommended session plug in for tmux-resurrect. I'm going to add instructions on how to use vim-session instead of obsession on that repo in this pull request that i will finish later tmux-plugins/tmux-resurrect#257

from vim-wintabs.

dylan-chong avatar dylan-chong commented on August 13, 2024

Hooray using the global session option works is!

I have one concern about using this option though. One benefit of using sessions is that if I am playing around with my Vim set up, and I want a clean reload of Vim (but still reopen all my files), I can just type :wqa<cr> then nvim -S.

If I enable the global session options then doing the above reload would not clean Vim very well, because there are a whole lot of global variables that are saved.

So basically, to get obsession working with this plug-in, there will be a much of side-effects.

I'm really not sure what the solution could be.

from vim-wintabs.

dylan-chong avatar dylan-chong commented on August 13, 2024

I just found this by googling https://github.com/xolox/vim-session#the-gsession_persist_globals-option which allows persistence of specific global variables. I might have a play with this later tonight.

from vim-wintabs.

zefei avatar zefei commented on August 13, 2024

Yeah I use vim-session myself, and wintabs supports vim-session out of the box: you don't need to register the wintabs global.

from vim-wintabs.

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.