Comments (4)
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.
issue fixed, many thanks
from vim-session.
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.
@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)
- gVim 8.1.1 full-screen HOT 2
- Saving session with makefile quicklist not working. HOT 4
- OpenSession - Entering a number without hitting enter
- autosave hidden unnamed buffers
- Persist markers into session? HOT 1
- Color scheme is not loaded properly when auto restoring session on VimEnter HOT 2
- RestartVim not working (linux vim 8.0.1453)
- Swich sessions HOT 1
- Forking this project HOT 1
- Files don't close when saving session in windows
- Missing/stale functions/mappings after some plugins get installed or removed
- Rename SaveSession, OpenSession, etc. to SessionSave, SessionOpen, etc.
- Swapfiles conflict when opening session in two Vim sessions
- Error while opening a session that contains at least one terminal buffer.
- Add support of Buffer Explorer plugin
- vim-session reorders the opened tabs
- newvim :setlocal buftype=acwrite & E676
- Save :Focus from vim-dispatch?
- slow
- Session is not completely restored on auto-load
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-session.