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.
This commit is contained in:
Bruno Heridet 2019-09-18 15:27:57 +02:00 committed by GitHub
parent 271b1d4f2f
commit 839c96cb21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -229,15 +229,15 @@ using the built-in `:doc` command.
selection then you can use the `P` key. selection then you can use the `P` key.
=[ REPLACING SELECTIONS =[ DELETING / REPLACING SELECTIONS
Text replacement is a two step process in Kakoune, which Text replacement is a two step process in Kakoune, which
involves selecting text to be replaced, and then erasing it .---, involves selecting text to be replaced, and then erasing it
.---, to insert the replacement text. After selections have been | d | to insert the replacement text. After selections have been
| c | made, you can simply hit the deletion primitive (`d`), then `---' made, you can simply hit the deletion primitive (`d`), then
`---' either enter insert mode to write down the replacement text .---, either enter insert mode to write down the replacement text
(`i`), or stay in command mode to paste the replacement | c | (`i`), or stay in command mode to paste the replacement
text stored in the copy register. As deleting and entering `---' text stored in the copy register. As deleting and entering
.---, insert mode can be redundant, a primitive that implements .---, insert mode can be redundant, a primitive that implements
| R | deletion followed by insert mode entrance was implemented: | R | deletion followed by insert mode entrance was implemented:
`---' `c`. You can also directly replace the current selection `---' `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`. 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 +=-------------------------------=+ +=-------------------------------=+ ADVANCED +=-------------------------------=+
=[ SPLITTING =[ SPLITTING