You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -161,6 +161,12 @@ The session load/save prompts are quite verbose by default because they explain
161
161
162
162
By default this option is set to false (0). When you set this option to true (1) and you start Vim, the session plug-in will open your last used session instead of the default session. Note that the session plug-in will still show you the dialog asking whether you want to restore the last used session. To get rid of the dialog you have to set `g:session_autoload` to `'yes'`.
163
163
164
+
### The `g:session_persist_colors` option
165
+
166
+
By default the plug-in will save the color scheme and the ['background' option][bg] with the session to be reused the next time that session is loaded, this can be disabled by adding the following line to your [vimrc script][vimrc]:
167
+
168
+
:let g:session_persist_colors = 0
169
+
164
170
### The `g:session_persist_globals` option
165
171
166
172
The vim-session plug-in uses Vim's [:mksession][mksession] command but it changes ['sessionoptions'][sessionoptions] so that Vim options and mappings are not persisted. The plug-in does this because persistence of options and mappings can break loading of sessions, in other words it's fragile (in my opinion).
@@ -246,7 +252,7 @@ Recently this plug-in switched from reimplementing [:mksession][mksession] to ac
246
252
<!-- Start of generated documentation -->
247
253
248
254
The documentation of the 34 functions below was extracted from
249
-
1 Vim scripts on July 6, 2014 at 20:47.
255
+
1 Vim scripts on July 6, 2014 at 21:01.
250
256
251
257
### Public API for the vim-session plug-in
252
258
@@ -554,6 +560,7 @@ Here's an example session script generated by the vim-session plug-in while I wa
0 commit comments