Skip to content

Commit 9e9a608

Browse files
committed
Document usage of multiple platforms (issue #85)
See also issue #85 on GitHub: #85
1 parent 397d637 commit 9e9a608

File tree

3 files changed

+35
-10
lines changed

3 files changed

+35
-10
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,12 @@ list with one string on success and an empty list on failure.
519519

520520
<!-- End of generated documentation -->
521521

522+
## Troubleshooting
523+
524+
### Using multiple platforms (multi boot, Cygwin, etc.)
525+
526+
Session scripts cannot be shared between platforms because they contain absolute pathnames that most certainly won't match between e.g. Windows and Linux or even Windows and Cygwin. The best you can do is keep separate session scripts for different platforms (and I would certainly consider Cygwin a separate platform altogether :-). For more information please refer to [issue 85] [85].
527+
522528
## Contact
523529

524530
If you have questions, bug reports, suggestions, etc. the author can be contacted at <[email protected]>. The latest version is available at <http://peterodding.com/code/vim/session/> and <http://github.com/xolox/vim-session>. If you like the script please vote for it on [Vim Online](http://www.vim.org/scripts/script.php?script_id=3150).
@@ -629,6 +635,7 @@ Here's an example session script generated by the vim-session plug-in while I wa
629635

630636

631637
[81]: https://github.com/xolox/vim-session/pull/81
638+
[85]: https://github.com/xolox/vim-session/issues/85
632639
[bg]: http://vimdoc.sourceforge.net/htmldoc/options.html#'background'
633640
[delcommand]: http://vimdoc.sourceforge.net/htmldoc/map.html#:delcommand
634641
[howto-install]: https://github.com/xolox/vim-session/blob/master/INSTALL.md

autoload/xolox/session.vim

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
" Public API for the vim-session plug-in.
22
"
33
" Author: Peter Odding
4-
" Last Change: September 4, 2015
4+
" Last Change: November 1, 2015
55
" URL: http://peterodding.com/code/vim/session/
66

7-
let g:xolox#session#version = '2.13'
7+
let g:xolox#session#version = '2.13.1'
88

99
" Public API for session persistence. {{{1
1010

doc/session.txt

+26-8
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,12 @@ Contents ~
7272
27. The |xolox#session#locking_enabled()| function
7373
2. Example function for session name suggestions |example-function-for-session-name-suggestions|
7474
1. The |xolox#session#suggestions#vcs_feature_branch()| function
75-
7. Contact |session-contact|
76-
8. License |session-license|
77-
9. Sample session script |sample-session-script|
78-
10. References |session-references|
75+
7. Troubleshooting |session-troubleshooting|
76+
1. Using multiple platforms (multi boot, Cygwin, etc.) |session-using-multiple-platforms|
77+
8. Contact |session-contact|
78+
9. License |session-license|
79+
10. Sample session script |sample-session-script|
80+
11. References |session-references|
7981

8082
===============================================================================
8183
*session-introduction*
@@ -798,20 +800,35 @@ git or Mercurial feature branch (if any) and suggests this name as the name for
798800
the session that is being saved with :SaveSession. Returns a list with one
799801
string on success and an empty list on failure.
800802

803+
===============================================================================
804+
*session-troubleshooting*
805+
Troubleshooting ~
806+
807+
-------------------------------------------------------------------------------
808+
*session-using-multiple-platforms*
809+
Using multiple platforms (multi boot, Cygwin, etc.) ~
810+
811+
Session scripts cannot be shared between platforms because they contain
812+
absolute pathnames that most certainly won't match between e.g. Windows and
813+
Linux or even Windows and Cygwin. The best you can do is keep separate session
814+
scripts for different platforms (and I would certainly consider Cygwin a
815+
separate platform altogether :-). For more information please refer to issue 85
816+
[16].
817+
801818
===============================================================================
802819
*session-contact*
803820
Contact ~
804821

805822
If you have questions, bug reports, suggestions, etc. the author can be
806823
contacted at [email protected]. The latest version is available at
807824
http://peterodding.com/code/vim/session/ and http://github.com/xolox/vim-
808-
session. If you like the script please vote for it on Vim Online [16].
825+
session. If you like the script please vote for it on Vim Online [17].
809826

810827
===============================================================================
811828
*session-license*
812829
License ~
813830

814-
This software is licensed under the MIT license [17]. © 2015 Peter Odding
831+
This software is licensed under the MIT license [18]. © 2015 Peter Odding
815832
<[email protected]> and Ingo Karkat.
816833

817834
Thanks go out to everyone who has helped to improve the vim-session plug-in
@@ -936,7 +953,8 @@ References ~
936953
[13] http://peterodding.com/code/vim/session
937954
[14] http://peterodding.com/code/vim/shell
938955
[15] https://github.com/mhinz/vim-startify/
939-
[16] http://www.vim.org/scripts/script.php?script_id=3150
940-
[17] http://en.wikipedia.org/wiki/MIT_License
956+
[16] https://github.com/xolox/vim-session/issues/85
957+
[17] http://www.vim.org/scripts/script.php?script_id=3150
958+
[18] http://en.wikipedia.org/wiki/MIT_License
941959

942960
vim: ft=help

0 commit comments

Comments
 (0)