From c2d7b62e8fdc535330aea79e463a449ed3b4ef51 Mon Sep 17 00:00:00 2001 From: Ryan Westlund Date: Fri, 24 Sep 2021 21:40:11 +0000 Subject: [PATCH] Fix #2190: Document goto command in commands.md (#2218) --- runtime/help/commands.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/runtime/help/commands.md b/runtime/help/commands.md index 771f06a2..c0ef8dbf 100644 --- a/runtime/help/commands.md +++ b/runtime/help/commands.md @@ -29,6 +29,10 @@ quotes here but these are not necessary when entering the command in micro. * `quit`: quits micro. +* `goto 'line'`: jumps to the given line number. A negative number can be + passed to jump inward from the end of the file; for example, -5 jumps + to the 5th-last line in the file. + * `replace 'search' 'value' 'flags'?`: This will replace `search` with `value`. The `flags` are optional. Possible flags are: * `-a`: Replace all occurrences at once -- 2.44.0