@@ -50,23 +50,24 @@ Contents ~
50
50
7. The | xolox#session#save_state() | function
51
51
8. The | xolox#session#save_special_windows() | function
52
52
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
70
71
2. Example function for session name suggestions | example-function-for-session-name-suggestions |
71
72
1. The | xolox#session#suggestions#vcs_feature_branch() | function
72
73
8. Contact | session-contact |
@@ -542,8 +543,8 @@ might take a while...)
542
543
*session-function-reference*
543
544
Function reference ~
544
545
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 .
547
548
548
549
-------------------------------------------------------------------------------
549
550
*public-api-for-vim-session-plug-in*
@@ -627,6 +628,17 @@ The *xolox#session#auto_load()* function
627
628
Automatically load the default or last used session when Vim starts. Normally
628
629
called by the | VimEnter | automatic command event.
629
630
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
+
630
642
-------------------------------------------------------------------------------
631
643
The *xolox#session#auto_save()* function
632
644
@@ -785,13 +797,13 @@ Contact ~
785
797
If you have questions, bug reports, suggestions, etc. the author can be
786
798
contacted at peter@peterodding.com. The latest version is available at
787
799
http://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 ] .
789
801
790
802
===============================================================================
791
803
*session-license*
792
804
License ~
793
805
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
795
807
<peter@peterodding.com> and Ingo Karkat.
796
808
797
809
Thanks go out to everyone who has helped to improve the vim-session plug-in
@@ -919,7 +931,8 @@ References ~
919
931
[16] http://peterodding.com/code/vim/shell/
920
932
[17] http://peterodding.com/code/vim/session
921
933
[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
924
937
925
938
vim: ft=help
0 commit comments