diff options
author | John Ankarström <john@ankarstrom.se> | 2021-05-24 13:31:06 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-05-24 13:31:06 +0200 |
commit | 026d9f86c67790d96ded1de8faeaba213a9f5631 (patch) | |
tree | 0fc5cb6f48107988984599d10972c06ad094f982 /vp.1 | |
download | vp-026d9f86c67790d96ded1de8faeaba213a9f5631.tar.gz |
First commit
Diffstat (limited to 'vp.1')
-rw-r--r-- | vp.1 | 52 |
1 files changed, 52 insertions, 0 deletions
@@ -0,0 +1,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. |