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: plugin/session.vim
+29-5Lines changed: 29 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
" Vim script
2
2
" Author: Peter Odding
3
-
" Last Change:May 12, 2013
3
+
" Last Change:July 4, 2013
4
4
" URL: http://peterodding.com/code/vim/session/
5
5
6
6
" Support for automatic update using the GLVS plug-in.
@@ -11,6 +11,22 @@ if &cp || exists('g:loaded_session')
11
11
finish
12
12
endif
13
13
14
+
" Make sure vim-misc is installed. {{{1
15
+
16
+
try
17
+
" The point of this code is to do something completely innocent while making
18
+
" sure the vim-misc plug-in is installed. We specifically don't use Vim's
19
+
" exists() function because it doesn't load auto-load scripts that haven't
20
+
" already been loaded yet (last tested on Vim 7.3).
21
+
calltype(g:xolox#misc#version)
22
+
catch
23
+
echomsg"Warning: The vim-session plug-in requires the vim-misc plug-in which seems not to be installed! For more information please review the installation instructions in the readme (also available on the homepage and on GitHub). The vim-session plug-in will now be disabled."
24
+
letg:loaded_session=1
25
+
finish
26
+
endtry
27
+
28
+
" Configuration defaults. {{{1
29
+
14
30
" The name of the default session (without directory or filename extension).
15
31
if!exists('g:session_default_name')
16
32
letg:session_default_name='default'
@@ -82,7 +98,8 @@ if !exists('g:session_command_aliases')
82
98
letg:session_command_aliases=0
83
99
endif
84
100
85
-
" Make sure the session scripts directory exists and is writable.
101
+
" Make sure the sessions directory exists and is writable. {{{1
0 commit comments