Giter Club home page Giter Club logo

Comments (4)

xolox avatar xolox commented on July 19, 2024

The plug-in already persists the background option but when it loads a session, it first applies the colorscheme and then sets the background option. Switching the order doesn't make a difference for the dual color scheme I use (earendel) but maybe it does make a difference for the solarized color scheme? Can you try out the new version I just published (1.4.13) and confirm whether or not it fixes the issue?

from vim-session.

seebi avatar seebi commented on July 19, 2024

issue fixed, many thanks

from vim-session.

aleprovencio avatar aleprovencio commented on July 19, 2024

I still have a problem with this. When saving a session from terminal vim and opening it on gvim or vice versa the colors are messed. Why the plugin persists the background?

My setup:

if has('gui_running')
    set background=light
    ...
else
    set background=dark
    ...
endif
colorscheme solarized

In addiction, I've got solarized light colors set on .Xresources. (I'm sure why but I need to to set a background=dark for terminal in order for it to work)

from vim-session.

xolox avatar xolox commented on July 19, 2024

@aleprovencio: In case you are still using the vim-session plug-in and you're still annoyed by this behavior, I just merged pull request #78 and published the result as vim-session 2.5 which contains the g:session_persist_colors option. You can set it to zero in your vimrc script to stop the plug-in from saving and restoring the color scheme and the background option.

from vim-session.

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.