From 46b8964bbb0596a872cf8cccba5b15884e6bc9d8 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 8 Aug 2012 00:11:36 +0200 Subject: [PATCH] Update README * Document commands, string syntax, shell expansion. * Style cleanup --- README.asciidoc | 154 +++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 125 insertions(+), 29 deletions(-) diff --git a/README.asciidoc b/README.asciidoc index 91779c4b..c9e48e8e 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -66,8 +66,8 @@ command itself. for example, _3W_ selects 3 consecutive words and _3w_ select the third word on the right of selection end. -* _space_: when used with count, keep only the counth selection -* _alt-space_: when used with count, remove the counth selection + * _space_: when used with count, keep only the counth selection + * _alt-space_: when used with count, remove the counth selection Changes ------- @@ -116,12 +116,12 @@ Object Selection Using alt-i and alt-a, you can select some text object, the starting point is always the last character of the selection. -* _b_, _(_ or _)_: select the enclosing parenthesis -* _B_, _{_ or _}_: select the enclosing {} block -* _[_ or _]_: select the enclosing [] block -* _<_ or _>_: select the enclosing <> block -* w: select the whole word -* W: select the whole WORD + * _b_, _(_ or _)_: select the enclosing parenthesis + * _B_, _{_ or _}_: select the enclosing {} block + * _[_ or _]_: select the enclosing [] block + * _<_ or _>_: select the enclosing <> block + * w: select the whole word + * W: select the whole WORD When it makes sense, _alt-i_ selects the inner object and alt-a the whole object. For example _alt-i_ ( will only select the inside of the parenthesis, @@ -145,6 +145,48 @@ selection. Registers are lists, instead of simply text in order to interact well with multiselection. Each selection have it's own captures, or yank buffer. +Basic Commands +-------------- + +Commands are entered using *:*. + + * e[dit] [ []]: open buffer on file, go to given + line and column. If file is already opened, just switch to this file. + use edit! to force reloading. + * w[rite] []: write buffer to or use it's name if + filename is not given. + * q[uit]: exit Kakoune, use quit! to force quitting even if there is some + unsaved buffers remaining. + * wq: write current buffer and quit + * b[uffer] : switch to buffer + * d[el]b[uf] []: delete the buffer + * source : execute commands in + * runtime : execute commands in , + is relative to kak executable path. + * exec : execute as if pressed in normal mode. + * echo : show in status line + * set[bwg]