@@ -27,17 +27,18 @@ Contents ~
2727 7. The | g:session_extension | option
2828 8. The | g:session_autoload | option
2929 9. The | g:session_autosave | option
30- 10. The | g:session_autosave_periodic | option
31- 11. The | g:session_autosave_silent | option
32- 12. The | g:session_verbose_messages | option
33- 13. The | g:session_default_to_last | option
34- 14. The | g:session_persist_colors | option
35- 15. The | g:session_persist_globals | option
36- 16. The | g:session_restart_environment | option
37- 17. The | g:session_command_aliases | option
38- 18. The | g:session_menu | option
39- 19. The | g:session_name_suggestion_function | option
40- 20. The | g:loaded_session | option
30+ 10. The | g:session_autosave_to | option
31+ 11. The | g:session_autosave_periodic | option
32+ 12. The | g:session_autosave_silent | option
33+ 13. The | g:session_verbose_messages | option
34+ 14. The | g:session_default_to_last | option
35+ 15. The | g:session_persist_colors | option
36+ 16. The | g:session_persist_globals | option
37+ 17. The | g:session_restart_environment | option
38+ 18. The | g:session_command_aliases | option
39+ 19. The | g:session_menu | option
40+ 20. The | g:session_name_suggestion_function | option
41+ 21. The | g:loaded_session | option
4142 5. Compatibility with other plug-ins | session-compatibility-with-other-plug-ins |
4243 6. Function reference | session-function-reference |
4344 1. Public API for the vim-session plug-in | public-api-for-vim-session-plug-in |
@@ -358,6 +359,16 @@ to your session. Set this option to "'yes'" to always automatically save open
358359sessions when you quit Vim. To completely disable automatic saving you can set
359360this option to "'no' ".
360361
362+ -------------------------------------------------------------------------------
363+ The *g:session_autosave_to* option
364+
365+ If | g:session_autosave | is "'yes' " and this option is a nonempty string,
366+ automatic session saving always saves to the session with the name given by
367+ | g:session_autosave_to | regardless of what the current session is or any other
368+ options. In particular, | g:session_default_overwrite | does not have any effect.
369+ By default this option isn't set so none of this applies. Refer to pull request
370+ 81 [6] for a more detailed use case.
371+
361372-------------------------------------------------------------------------------
362373The *g:session_autosave_periodic* option
363374
@@ -509,9 +520,9 @@ Vim's |:mksession| command isn't really compatible with plug-ins that create
509520buffers with generated content and because of this the vim-session plug-in
510521includes specific workarounds for a couple of popular plug-ins:
511522
512- - BufExplorer [6 ], Conque Shell [7 ], NERD tree [8 ], Project [9 ] and taglist
513- [10 ] windows are supported;
514- - When shell.vim [11 ] is installed Vim's full-screen state is persisted;
523+ - BufExplorer [7 ], Conque Shell [8 ], NERD tree [9 ], Project [10 ] and taglist
524+ [11 ] windows are supported;
525+ - When shell.vim [12 ] is installed Vim's full-screen state is persisted;
515526- The netrw (see | netrw-start | ) plug-in supports sessions out of the box.
516527
517528If your favorite plug-in doesn't work with the vim-session plug-in drop me a
@@ -575,7 +586,7 @@ session script.
575586The *xolox#session#save_fullscreen()* function
576587
577588Save the full screen state of Vim. This function provides integration between
578- my vim-session [12 ] and vim-shell [13 ] plug-ins. The first argument is expected
589+ my vim-session [13 ] and vim-shell [14 ] plug-ins. The first argument is expected
579590to be a list, it will be extended with the lines to be added to the session
580591script.
581592
@@ -615,7 +626,7 @@ Check that the user has started Vim without editing any files. Used by
615626should be performed. Currently checks the following conditions:
616627
6176281. That the current buffer is either empty (contains no lines and is not
618- modified) or showing vim-startify [14 ] .
629+ modified) or showing vim-startify [15 ] .
6196302. That the buffer list either empty or persistent.
620631
621632-------------------------------------------------------------------------------
@@ -776,13 +787,13 @@ Contact ~
776787If you have questions, bug reports, suggestions, etc. the author can be
777788contacted at peter@peterodding.com. The latest version is available at
778789http://peterodding.com/code/vim/session/ and http://github.com/xolox/vim -
779- session. If you like the script please vote for it on Vim Online [15 ] .
790+ session. If you like the script please vote for it on Vim Online [16 ] .
780791
781792===============================================================================
782793 *session-license*
783794License ~
784795
785- This software is licensed under the MIT license [16 ] . © 2015 Peter Odding
796+ This software is licensed under the MIT license [17 ] . © 2015 Peter Odding
786797<peter@peterodding.com> and Ingo Karkat.
787798
788799Thanks go out to everyone who has helped to improve the vim-session plug-in
@@ -897,16 +908,17 @@ References ~
897908[3] http://peterodding.com/code/vim/session/#sample_session_script
898909[4] https://github.com/xolox/vim-session/blob/master/INSTALL.md
899910[5] http://peterodding.com/code/vim/reload/
900- [6] http://www.vim.org/scripts/script.php?script_id=42
901- [7] http://www.vim.org/scripts/script.php?script_id=2771
902- [8] http://www.vim.org/scripts/script.php?script_id=1658
903- [9] http://www.vim.org/scripts/script.php?script_id=69
904- [10] http://www.vim.org/scripts/script.php?script_id=273
905- [11] http://peterodding.com/code/vim/shell/
906- [12] http://peterodding.com/code/vim/session
907- [13] http://peterodding.com/code/vim/shell
908- [14] https://github.com/mhinz/vim-startify/
909- [15] http://www.vim.org/scripts/script.php?script_id=3150
910- [16] http://en.wikipedia.org/wiki/MIT_License
911+ [6] https://github.com/xolox/vim-session/pull/81
912+ [7] http://www.vim.org/scripts/script.php?script_id=42
913+ [8] http://www.vim.org/scripts/script.php?script_id=2771
914+ [9] http://www.vim.org/scripts/script.php?script_id=1658
915+ [10] http://www.vim.org/scripts/script.php?script_id=69
916+ [11] http://www.vim.org/scripts/script.php?script_id=273
917+ [12] http://peterodding.com/code/vim/shell/
918+ [13] http://peterodding.com/code/vim/session
919+ [14] http://peterodding.com/code/vim/shell
920+ [15] https://github.com/mhinz/vim-startify/
921+ [16] http://www.vim.org/scripts/script.php?script_id=3150
922+ [17] http://en.wikipedia.org/wiki/MIT_License
911923
912924vim: ft=help
0 commit comments