blob: 54f3a62d1e5485f1bc9eac6d739a370aee8f64cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
.Dd $Mdocdate$
.Dt vp 1
.Os
.
.Sh NAME
.Nm vp
.Nd run commands interactively
.
.Sh SYNOPSIS
.Nm
.Op Ar arg ...
.
.Sh DESCIPTION
.Pp
.Nm
opens
.Xr vi 1
with two custom key mappings, defined in
.Pa /usr/local/etc/vprc :
.Bl -tag
.It Sy g
Execute the buffer as a shell command
and append the output to the buffer
with each line beginning with
.Sq #\ .
Lines beginning with
.Sq #
are ignored by
.Sy g .
.It Sy q
Remove any lines not beginning with
.Sq #
and remove the
.Sq #\
prefix from all remaining lines.
.El
.Pp
These mappings are useful for interactively testing shell commands.
Any arguments given to
.Nm
are passed on to
.Xr vi 1 .
.
.Sh AUTHORS
.Pp
.Nm
is written by John Ankarström
.Aq Mt john (at) ankarstrom.se .
It is inspired by Mateusz Czapliński's
.Em up
.Dq ( Ultimate Plumber )
tool.
|