#vim #macro #shell

app vroom

Vim macros from the shell

1 unstable release

0.1.0 May 11, 2020

#32 in #vim

Apache-2.0

19KB
407 lines

[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

No runtime deps