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
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -156,6 +156,10 @@ By default this option is set to `'prompt'`. This means that when you start Vim
156
156
157
157
By default this option is set to `'prompt'`. When you've opened a session and you quit Vim, the session plug-in will ask whether you want to save the changes to your session. Set this option to `'yes'` to always automatically save open sessions when you quit Vim. To completely disable automatic saving you can set this option to `'no'`.
158
158
159
+
### The `g:session_autosave_to` option
160
+
161
+
If `g:session_autosave` is `'yes'` and this option is a nonempty string, automatic session saving always saves to the session with the name given by `g:session_autosave_to` regardless of what the current session is or any other options. In particular, `g:session_default_overwrite` does not have any effect. By default this option isn't set so none of this applies. Refer to [pull request 81][81] for a more detailed use case.
162
+
159
163
### The `g:session_autosave_periodic` option
160
164
161
165
This option sets the interval in minutes for automatic, periodic saving of active sessions. The default is zero which disables the feature.
@@ -613,11 +617,12 @@ Here's an example session script generated by the vim-session plug-in while I wa
0 commit comments