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
" Open a new scratch buffer with Markdown filetype
27
-
:ScratchBufferOpen md
28
-
```
28
+
## :wrench: Quick Start
29
29
30
30
```vim
31
-
" Open a small buffer at the top for quick notes
32
-
:ScratchBufferOpen md sp 5
33
-
:ScratchBufferOpen --no-file-ext sp 5
31
+
:ScratchBufferOpen " Open a temporary buffer using default options
32
+
:ScratchBufferOpen md sp 5 " Open a temporary Markdown buffer with :sp and height 5
33
+
:ScratchBufferOpenFile ts vsp 100 " Open a persistent TypeScript buffer with :vsp and width 100
34
+
:ScratchBufferOpenNext " Open next temporary buffer
35
+
:ScratchBufferOpenFileNext " Open next persistent buffer
34
36
```
35
37
36
-
Of course, you can open other file types too!
37
-
38
-
```vim
39
-
" Open a TypeScript buffer
40
-
:ScratchBufferOpen ts
41
-
```
38
+
Please see '[Detailed Usage](#gear-detailed-usage)' section for more information.
42
39
43
40
## :fire: Why scratch-buffer.vim?
44
41
@@ -65,15 +62,60 @@ However, vim-scratch-buffer adds more features.
65
62
66
63
Compared to scratch.vim, vim-scratch-buffer provides these additional features:
67
64
68
-
- Open multiple buffers with sequential numbering
65
+
- Flexible buffer management
66
+
- Open multiple buffers with sequential numbering (`:ScratchBufferOpenNext`)
67
+
- Quick access to recently used buffers (`:ScratchBufferOpen`)
69
68
- When you want to take notes on different topics, scratch.vim only allows one buffer
70
-
- See [`:ScratchBufferOpen`](https://github.com/aiya000/vim-scratch-buffer/blob/736eef08b531b91c95497917ddb97ffbc2047c73/doc/vim-scratch-buffer.txt#L86)
71
-
- Choose between writeable buffers or temporary buffers
72
-
- See [`:ScratchBufferOpen`](https://github.com/aiya000/vim-scratch-buffer/blob/736eef08b531b91c95497917ddb97ffbc2047c73/doc/vim-scratch-buffer.txt#L86) and [`:ScratchBufferOpenFile`](https://github.com/aiya000/vim-scratch-buffer/blob/736eef08b531b91c95497917ddb97ffbc2047c73/doc/vim-scratch-buffer.txt#L120)
73
-
- Specify filetype, opening method (`:split` or `:vsplit`), and buffer height (width)
You can disable these default keymappings by setting:
139
+
The quick open commands create buffers with default settings, while the interactive commands let you specify file extension, open method, and buffer size.
140
+
141
+
You can customize these mappings by disabling the defaults:
95
142
96
143
```vim
97
144
let g:scratch_buffer_use_default_keymappings = v:false
0 commit comments