vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit b5974cf66ea9724f8662cd1ca4e79721c0791b09 parent 81701d12f61c1294c659df1261ac05c964a3efac Author: Marc André Tanner <mat@brain-dump.org> Date: Thu, 22 Oct 2015 19:24:24 +0200 vis: include :-commands in :help output Diffstat:
| M | vis.c | | | 4 | ++++ |
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/vis.c b/vis.c @@ -2374,6 +2374,10 @@ static bool cmd_help(Filerange *range, enum CmdOpt opt, const char *argv[]) { text_appendf(txt, "\n Motions\n\n"); print_mode(&vis_modes[VIS_MODE_MOVE], txt, false); + text_appendf(txt, "\n :-Commands\n\n"); + for (Command *cmd = cmds; cmd && cmd->name[0]; cmd++) + text_appendf(txt, " %s\n", cmd->name[0]); + text_save(txt, NULL); return true; }