vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 65d25c7a905d485af3e2d5d1e9feb9d0fdc14104 parent 4e8afb6bc49cebcbad7e9cd64fb8b57b1a219e9b Author: Marc André Tanner <mat@brain-dump.org> Date: Sat, 19 Nov 2016 13:22:57 +0100 sam: change default address of "s" command to current line Diffstat:
| M | sam.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sam.c b/sam.c @@ -147,7 +147,7 @@ static const CommandDef cmds[] = { CMD_NONE, NULL, cmd_print }, { "s", "Substitute text for regexp in range", - CMD_SHELL, NULL, cmd_substitute + CMD_SHELL|CMD_ADDRESS_LINE, NULL, cmd_substitute }, { "v", "If range does not contain regexp, run command", CMD_CMD|CMD_REGEX, "p", cmd_guard