From 437255bcbc4637d8ad45693f296a8b5193628815 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 12 Nov 2012 19:41:50 +0100 Subject: [PATCH] update README and VIMTOKAK --- README.asciidoc | 4 ++-- VIMTOKAK | 14 ++++++-------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/README.asciidoc b/README.asciidoc index 075464af..505952a0 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -112,7 +112,8 @@ selection according to the regex entered. To split a comma separated list, use _alt-s_ then ', *' To clear multiple selections, use _space_. To keep only the nth selection -use _n_ followed by _space_. +use _n_ followed by _space_, to remove only the nth selection, use _n_ +followed by _alt-space_. Object Selection ---------------- @@ -342,7 +343,6 @@ FIFO Buffer ----------- the +edit+ command can take a -fifo parameter: - ----------------------------------- :edit -fifo ----------------------------------- diff --git a/VIMTOKAK b/VIMTOKAK index 7219a500..0379f487 100644 --- a/VIMTOKAK +++ b/VIMTOKAK @@ -1,6 +1,12 @@ Vi(m) to Kakoune: ================= +Most operations in Kakoune are reversed compared to Vim: In kak, you first +select the text you want to act on, then you edit it. This way, things are +much more consistent, as for example, kak does not need a key for delete +character, the delete key handles this just fine as long as you did not +select more than a character (but clearing selection is only one space away). + delete a word: * vim: dw * kak: wd @@ -13,14 +19,6 @@ copy a line: * vim: yy * kak: xy -paste a line (linewise): - * vim: p or P - * kak: xp or xP - -paste a line (not linewise): - * vim: no supported - * kak: p or P - global replace: * vim: :%s/word/replacement * kak: %swordcreplacement