@@ -50,23 +50,24 @@ Contents ~
5050 7. The | xolox#session#save_state() | function
5151 8. The | xolox#session#save_special_windows() | function
5252 9. The | xolox#session#auto_load() | function
53- 10. The | xolox#session#auto_save() | function
54- 11. The | xolox#session#auto_save_periodic() | function
55- 12. The | xolox#session#auto_unlock() | function
56- 13. The | xolox#session#prompt_for_name() | function
57- 14. The | xolox#session#name_to_path() | function
58- 15. The | xolox#session#path_to_name() | function
59- 16. The | xolox#session#get_names() | function
60- 17. The | xolox#session#complete_names() | function
61- 18. The | xolox#session#complete_names_with_suggestions() | function
62- 19. The | xolox#session#is_tab_scoped() | function
63- 20. The | xolox#session#find_current_session() | function
64- 21. The | xolox#session#get_label() | function
65- 22. The | xolox#session#options_include() | function
66- 23. The | xolox#session#include_tabs() | function
67- 24. The | xolox#session#change_tab_options() | function
68- 25. The | xolox#session#restore_tab_options() | function
69- 26. The | xolox#session#locking_enabled() | function
53+ 10. The | xolox#session#is_empty() | function
54+ 11. The | xolox#session#auto_save() | function
55+ 12. The | xolox#session#auto_save_periodic() | function
56+ 13. The | xolox#session#auto_unlock() | function
57+ 14. The | xolox#session#prompt_for_name() | function
58+ 15. The | xolox#session#name_to_path() | function
59+ 16. The | xolox#session#path_to_name() | function
60+ 17. The | xolox#session#get_names() | function
61+ 18. The | xolox#session#complete_names() | function
62+ 19. The | xolox#session#complete_names_with_suggestions() | function
63+ 20. The | xolox#session#is_tab_scoped() | function
64+ 21. The | xolox#session#find_current_session() | function
65+ 22. The | xolox#session#get_label() | function
66+ 23. The | xolox#session#options_include() | function
67+ 24. The | xolox#session#include_tabs() | function
68+ 25. The | xolox#session#change_tab_options() | function
69+ 26. The | xolox#session#restore_tab_options() | function
70+ 27. The | xolox#session#locking_enabled() | function
7071 2. Example function for session name suggestions | example-function-for-session-name-suggestions |
7172 1. The | xolox#session#suggestions#vcs_feature_branch() | function
7273 8. Contact | session-contact |
@@ -542,8 +543,8 @@ might take a while...)
542543 *session-function-reference*
543544Function reference ~
544545
545- The documentation of the 38 functions below was extracted from 2 Vim scripts on
546- March 15, 2015 at 10:15 .
546+ The documentation of the 39 functions below was extracted from 2 Vim scripts on
547+ March 15, 2015 at 10:22 .
547548
548549-------------------------------------------------------------------------------
549550 *public-api-for-vim-session-plug-in*
@@ -627,6 +628,17 @@ The *xolox#session#auto_load()* function
627628Automatically load the default or last used session when Vim starts. Normally
628629called by the | VimEnter | automatic command event.
629630
631+ -------------------------------------------------------------------------------
632+ The *xolox#session#is_empty()* function
633+
634+ Check that the user has started Vim without editing any files. Used by
635+ | xolox#session#auto_load() | to determine whether automatic session loading
636+ should be performed. Currently checks the following conditions:
637+
638+ 1. That the current buffer is either empty (contains no lines and is not
639+ modified) or showing vim-startify [19] .
640+ 2. That the buffer list either empty or persistent.
641+
630642-------------------------------------------------------------------------------
631643The *xolox#session#auto_save()* function
632644
@@ -785,13 +797,13 @@ Contact ~
785797If you have questions, bug reports, suggestions, etc. the author can be
786798contacted at peter@peterodding.com. The latest version is available at
787799http://peterodding.com/code/vim/session/ and http://github.com/xolox/vim -
788- session. If you like the script please vote for it on Vim Online [19 ] .
800+ session. If you like the script please vote for it on Vim Online [20 ] .
789801
790802===============================================================================
791803 *session-license*
792804License ~
793805
794- This software is licensed under the MIT license [20 ] . © 2015 Peter Odding
806+ This software is licensed under the MIT license [21 ] . © 2015 Peter Odding
795807<peter@peterodding.com> and Ingo Karkat.
796808
797809Thanks go out to everyone who has helped to improve the vim-session plug-in
@@ -919,7 +931,8 @@ References ~
919931[16] http://peterodding.com/code/vim/shell/
920932[17] http://peterodding.com/code/vim/session
921933[18] http://peterodding.com/code/vim/shell
922- [19] http://www.vim.org/scripts/script.php?script_id=3150
923- [20] http://en.wikipedia.org/wiki/MIT_License
934+ [19] https://github.com/mhinz/vim-startify/
935+ [20] http://www.vim.org/scripts/script.php?script_id=3150
936+ [21] http://en.wikipedia.org/wiki/MIT_License
924937
925938vim: ft=help
0 commit comments