implemented commands are listed and grouped
command functionality is not described
---
 toys/pending/vi.c | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)
From eeaa9b5e3181656f847339c8d1bf0566dcae637b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jarno=20M=C3=A4kip=C3=A4=C3=A4?= <jmaki...@gmail.com>
Date: Mon, 2 Oct 2023 11:34:43 +0300
Subject: [PATCH] vi: list commands supported in help desc

implelemented commands are listed and grouped
command functionality is not described
---
 toys/pending/vi.c | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/toys/pending/vi.c b/toys/pending/vi.c
index 385ad7a8..0b51fb28 100644
--- a/toys/pending/vi.c
+++ b/toys/pending/vi.c
@@ -17,8 +17,22 @@ config VI
     so the controls are weird and historical.
 
     -s script: run script file
-*/
 
+    vi mode commands:
+    [count][cmd][motion]
+    cmd: c d y
+    motion: 0 b e G H h j k L l M w $ f F
+
+    [count][cmd]
+    cmd: D I J O n o p x dd yy
+
+    [cmd]
+    cmd: / ? : A a i CTRL_D CTRL_B CTRL_E CTRL_F CTRL_Y \e \b
+
+    ex mode commands:
+    [cmd]
+    \b \e \n w wq q! 'set list' 'set nolist' d $ %
+*/
 #define FOR_vi
 #include "toys.h"
 #define CTL(a) a-'@'
-- 
2.39.2

_______________________________________________
Toybox mailing list
Toybox@lists.landley.net
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to