aboutsummaryrefslogtreecommitdiff
vp(1) General Commands Manual vp(1)

vprun commands interactively

vp [arg ...]

vp opens vi(1) with two custom key mappings, defined in /usr/local/etc/vprc:

Execute the buffer as a shell command and append the output to the buffer with each line beginning with ‘# ’. Lines beginning with ‘#’ are ignored by g.
Remove any lines not beginning with ‘#’ and remove the ‘# ’ prefix from all remaining lines.

These mappings are useful for interactively testing shell commands. Any arguments given to vp are passed on to vi(1).

vp is written by John Ankarström <john (at) ankarstrom.se>. It is inspired by Mateusz Czapliński's (“Ultimate Plumber”) tool.

April 24, 2024 OpenBSD 7.2