๐ No more hassle with file paths! The fastest way to open an instant scratch buffer.
" Open a new scratch buffer without file extension and filetype
:ScratchBufferOpen
:ScratchBufferOpen --no-file-ext" Open a new scratch buffer with Markdown filetype
:ScratchBufferOpen md" Open a small buffer at the top for quick notes
:ScratchBufferOpen md sp 5
:ScratchBufferOpen --no-file-ext sp 5Of course, you can open other file types too!
" Open a TypeScript buffer
:ScratchBufferOpen ts- Open instantly! Just run
:ScratchBufferOpen! - No file management! Perfect for quick notes and testing code snippets.
- Works anywhere! Whether in terminal Vim or GUI, it's always at your fingertips.
๐ก Combine it with vim-quickrun to execute code instantly!
" Write TypeScript code...
:ScratchBufferOpen ts
" ...and run it immediately!
:QuickRun" Delete all scratch files and buffers
:ScratchBufferClean