@@ -71,16 +71,35 @@ INTERFACE *scratch-buffer-interface*
7171VARIABLES *scratch-buffer-variables*
7272
7373*g:scratch_buffer_tmp_file_pattern*
74- Default: '/tmp/vim-scratch-buffer-%d'
74+ Default:` ' /tmp/vim-scratch-buffer-%d' `
7575
76- When `ScratchBufferOpen` opens a scratch buffer, it will make a
76+ When`ScratchBufferOpen` opens a scratch buffer, it will make a
7777 decision based on this pattern.
78- Specifically, `printf($'/tmp/vim-scratch-buffer-%d.{ext} ', count)` will
79- be opened. `ext` is the first argument of `ScratchBufferOpen` .
80- `count ` is the number of currently open scratch buffers +1.
78+ Specifically,`printf($'/tmp/vim-scratch-buffer-%d.{ext} ', count)`
79+ will be opened. `ext` is the first argument of`ScratchBufferOpen` .
80+ `count ` is the number of currently open scratch buffers +1.
81+
82+ *g:scratch_buffer_default_file_ext*
83+ Default:`' md' `
84+
85+ The default file extension to use when opening a new scratch buffer.
86+ This is used when no file extension is provided as an argument.
87+
88+ *g:scratch_buffer_default_open_method*
89+ Default:`' sp' `
90+
91+ The default method to use when opening a new scratch buffer.
92+ Can be either 'sp' for horizontal split or 'vsp' for vertical split.
93+
94+ *g:scratch_buffer_default_buffer_size*
95+ Default:`15 `
96+
97+ The default size (height for 'sp' or width for 'vsp' ) of newly opened
98+ scratch buffers. Set to a positive number to resize the buffer
99+ upon opening.
81100
82101*g:scratch_buffer_auto_save_file_buffer*
83- Default: `v: true `
102+ Default:`v: true `
84103
85104 When enabled, file buffers (not temporary buffers) will be
86105 automatically saved when their content changes.
@@ -89,14 +108,12 @@ VARIABLES *scratch-buffer-variables*
89108 A dictionary that controls the auto-hiding behavior of scratch buffers.
90109 Has the following keys:
91110
92- .when_tmp_buffer
93- Default: `v: true `
111+ .when_tmp_buffer ( Default:`v: true ` )
94112 When enabled,
95113 temporary buffers will be automatically hidden
96114 when leaving their window.
97115
98- .when_file_buffer
99- Default: `v: false `
116+ .when_file_buffer ( Default:`v: false ` )
100117 When enabled,
101118 file buffers will be automatically hidden
102119 when leaving their window.
0 commit comments