https://github.com/hauleth/vim-backscratch
Small scratches for Vim, feels nice
https://github.com/hauleth/vim-backscratch
scratch vim vim-plugin
Last synced: 8 months ago
JSON representation
Small scratches for Vim, feels nice
- Host: GitHub
- URL: https://github.com/hauleth/vim-backscratch
- Owner: hauleth
- License: other
- Created: 2019-11-05T22:50:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-19T15:37:34.000Z (over 6 years ago)
- Last Synced: 2025-02-02T01:03:01.776Z (over 1 year ago)
- Topics: scratch, vim, vim-plugin
- Language: Vim script
- Homepage:
- Size: 2.93 KB
- Stars: 21
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Back scratch
Open new scratch window. Additionally allows to load output of Vim command,
shell command of register into such buffer.
## Thanks
Based on -romainl- script - https://gist.github.com/romainl/eae0a260ab9c135390c30cd370c20cd7
## Usage:
:Scratch "open new, empty, scratch window
:Scratch ls " show the full output of command :ls in scratch window
:Scratch !ls -la " show the full output of command :!ls -la in scratch window
:Scratch @+ " show the full output of '+' register in scratch window
## Additions:
- by default use :new instead of :vnew
- accepts modifiers like :vertical or :aboveleft to control where the
scratchpad will be positioned
- adds support for opening scratchpads for registers via @ prefix
- adds :Scratchify to change any buffer into scratchpad
## TODO:
- support for specifying filetype via +ft