From 35aef276b43a9f8aad25fbe2342789b3ab9ec258 Mon Sep 17 00:00:00 2001 From: Rager Florian Date: Sat, 5 Dec 2020 12:35:00 +0100 Subject: [PATCH 1/2] Add Ctrl-F command description Possibly the most useful command-line command there is! --- ch15_command-line_mode.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ch15_command-line_mode.md b/ch15_command-line_mode.md index e863ade..f989c63 100644 --- a/ch15_command-line_mode.md +++ b/ch15_command-line_mode.md @@ -39,7 +39,11 @@ Similar to the insert mode, inside the command-line mode, you have three ways to Ctrl-H Delete one character Ctrl-W Delete one word Ctrl-U Delete the entire line +Ctrl-F Show previous and current commands and rerun/edit them ``` +If you want to edit the command like you would a normal textfile use `Ctrl-F`. + +This also allows you to search through the previous commands, edit them and rerun them by pressing `Enter` in "command-line editing normal mode". ## Register And Autocomplete From 268f9ad2d1e05413a8dc1c5a192d7e1f1871d605 Mon Sep 17 00:00:00 2001 From: Rager Florian Date: Sat, 5 Dec 2020 17:27:13 +0100 Subject: [PATCH 2/2] Update ch15_command-line_mode.md --- ch15_command-line_mode.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ch15_command-line_mode.md b/ch15_command-line_mode.md index f989c63..7337dd6 100644 --- a/ch15_command-line_mode.md +++ b/ch15_command-line_mode.md @@ -39,9 +39,8 @@ Similar to the insert mode, inside the command-line mode, you have three ways to Ctrl-H Delete one character Ctrl-W Delete one word Ctrl-U Delete the entire line -Ctrl-F Show previous and current commands and rerun/edit them ``` -If you want to edit the command like you would a normal textfile use `Ctrl-F`. +Finally, if you want to edit the command like you would a normal textfile use `Ctrl-F`. This also allows you to search through the previous commands, edit them and rerun them by pressing `Enter` in "command-line editing normal mode".