From 839c96cb21802b5c6185645541c7ec08244899c3 Mon Sep 17 00:00:00 2001 From: Bruno Heridet Date: Wed, 18 Sep 2019 15:27:57 +0200 Subject: [PATCH] doc: add explicit mention of `d` and `u` commands. lenormf did a fantastic job in the original TRAMPOLINE by providing a good density information while keeping the document short. However, after skimming through it recently I found that these 2 basic commands (`d` and `u`) were not explicitly mentioned. As newcomers who ask for a `vimtutor` equivalent are often redirected to the TRAMPOLINE, I thought these short additions will be welcomed. --- contrib/TRAMPOLINE | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/contrib/TRAMPOLINE b/contrib/TRAMPOLINE index d8bbe789..4453b13c 100644 --- a/contrib/TRAMPOLINE +++ b/contrib/TRAMPOLINE @@ -229,15 +229,15 @@ using the built-in `:doc` command. selection then you can use the `P` key. - =[ REPLACING SELECTIONS + =[ DELETING / REPLACING SELECTIONS Text replacement is a two step process in Kakoune, which - involves selecting text to be replaced, and then erasing it - .---, to insert the replacement text. After selections have been - | c | made, you can simply hit the deletion primitive (`d`), then - `---' either enter insert mode to write down the replacement text - (`i`), or stay in command mode to paste the replacement - text stored in the copy register. As deleting and entering + .---, involves selecting text to be replaced, and then erasing it + | d | to insert the replacement text. After selections have been + `---' made, you can simply hit the deletion primitive (`d`), then + .---, either enter insert mode to write down the replacement text + | c | (`i`), or stay in command mode to paste the replacement + `---' text stored in the copy register. As deleting and entering .---, insert mode can be redundant, a primitive that implements | R | deletion followed by insert mode entrance was implemented: `---' `c`. You can also directly replace the current selection @@ -245,6 +245,14 @@ using the built-in `:doc` command. also implemented for that purpose: `R`. + =[ UNDO / REDO + + Mistakes or wrong decisions can happen while editing. + .---, To go back to earlier states of the buffer, you can press + | u | the `u` key several times. On the contrary, pressing `U` + `---' allows traveling forward in the history tree. + + +=-------------------------------=+ ADVANCED +=-------------------------------=+ =[ SPLITTING