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: README.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -127,6 +127,13 @@ Note that the vim-session plug-in automatically and unconditionally executes the
127
127
128
128
This option controls the location of your session scripts. Its default value is `~/.vim/sessions` (on UNIX) or `~\vimfiles\sessions` (on Windows). If you don't mind the default you don't have to do anything; the directory will be created for you. Note that a leading `~` is expanded to your current home directory (`$HOME` on UNIX, `%USERPROFILE%` on Windows).
129
129
130
+
### The `g:session_lock_directory` option
131
+
132
+
The vim-session plug-in uses lock files to prevent double loading of sessions. By default the lock files are stored in the same directory as the sessions. If you'd rather store lock files in a dedicated lock file directory you can use this option:
133
+
134
+
" Store lock files in a tmpfs that doesn't persist between reboots.
135
+
let g:session_lock_directory = '/var/lock'
136
+
130
137
### The `g:session_default_name` option
131
138
132
139
The name of the default session without directory or filename extension (you'll never guess what the default is).
@@ -256,7 +263,7 @@ Recently this plug-in switched from reimplementing [:mksession][mksession] to ac
256
263
<!-- Start of generated documentation -->
257
264
258
265
The documentation of the 37 functions below was extracted from
0 commit comments