From 2ca6945cadefcd820e1646847c5d886ede1b1d6a Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 2 Oct 2023 14:50:18 -0500 Subject: [PATCH] Tweak help text. --- toys/pending/vi.c | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/toys/pending/vi.c b/toys/pending/vi.c index 0b51fb28..bdd18d16 100644 --- a/toys/pending/vi.c +++ b/toys/pending/vi.c @@ -11,27 +11,29 @@ config VI bool "vi" default n help - usage: vi [-s script] FILE + usage: vi [-s SCRIPT] FILE - Visual text editor. Predates the existence of standardized cursor keys, - so the controls are weird and historical. + Visual text editor. Predates keyboards with standardized cursor keys. + If you don't know how to use it, hit the ESC key, type :q! and press ENTER. - -s script: run script file + -s run SCRIPT of commands on 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 + [count][cmd][motion] + cmd: c d y + motion: 0 b e G H h j k L l M w $ f F - [cmd] - cmd: / ? : A a i CTRL_D CTRL_B CTRL_E CTRL_F CTRL_Y \e \b + [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 $ % + + [cmd] + \b \e \n w wq q! 'set list' 'set nolist' d $ % */ #define FOR_vi #include "toys.h" -- 2.39.2