https://github.com/meain/vroom
Run VIM macros from cli
https://github.com/meain/vroom
Last synced: 26 days ago
JSON representation
Run VIM macros from cli
- Host: GitHub
- URL: https://github.com/meain/vroom
- Owner: meain
- Created: 2020-02-23T09:25:10.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-11T08:21:30.000Z (almost 5 years ago)
- Last Synced: 2025-03-09T12:34:20.735Z (about 2 months ago)
- Language: Rust
- Size: 21.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [WIP] Vroom
Run VIM macros over multiple lines.
### Usage
```
vroom 'pattern' filename
```
*Use `-` for filename to read from stdin*
cat list
vroom 'A juice<esc>I- ' list
vroom '$a pie,' list
vroom '0rW' list
lemon
mango
tomato
orange
apple
- lemon juice
- mango juice
- tomato juice
- orange juice
- apple juice
lemon pie,
mango pie,
tomato pie,
orange pie,
apple pie,
Wemon
Wango
Womato
Wrange
Wpple## Note
This is just me learning some rust. Vim actually lets you do something similar.
Checkout `vim -es````
vim -es test << EOF
%norm A juice
%norm I-
wq
EOF
```