From af90db8330d98fee27a47ee769a1a2a3a490f5d7 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 3 Jan 2013 14:01:48 +0100 Subject: [PATCH] Update README --- README.asciidoc | 45 +++++++++++++++++++++++++++++++++++++++------ 1 file changed, 39 insertions(+), 6 deletions(-) diff --git a/README.asciidoc b/README.asciidoc index 505952a0..c543c68c 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -29,6 +29,7 @@ Basic Movement -------------- * _space_: select the character under selection end + * _alt-space_: flip the selections * _h_: select the character on the right of selection end * _j_: select the character below the selection end @@ -38,6 +39,7 @@ Basic Movement * _w_: select the word and following whitespaces on the right of selection end * _b_: select preceding whitespaces and the word on the left of selection end * _e_: select preceding whitespaces and the word on the right of selection end + * _alt-[wbe]_: same as [wbe] but select WORD instead of word * _x_: select line on which selection end lies (or next line when end lies on an end-of-line) @@ -51,14 +53,20 @@ Basic Movement * _gg_, _gt_: go to the first line * _gb_: go to the last line - * _/_: search - * _n_: find next match + * _/_: search (select next match) + * _?_: search (extend to next match) + * _n_: select next match * _N_: add a new selection with next match + * _alt-n_: replace last selection with next match (preserving the others) + + * _alt-c_: center last selection in current window + * _pageup_: scroll up + * _pagedown_: scroll down Appending --------- -for most selection commands, using shift permits to add to current selection +for most selection commands, using shift permits to extend current selection instead of replacing it. for example, _wWW_ selects 3 consecutive words Using Counts @@ -88,12 +96,19 @@ Changes * _p_: paste after current selection end * _P_: paste before current selection begin + * _alt-p_: replace current selection with yanked text * _alt-j_: join selected lines + * _>_: indent selected lines + * _<_: deindent selected lines + * _|_: pipe each selections through the given external filter program and replace with it's output. + * _u_: undo last change + * _U_: redo last change + Multi Selection --------------- @@ -129,7 +144,7 @@ point is always the last character of the selection. * 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, +object. For example _alt-i_ will only select the inside of the parenthesis, for words, the difference between _alt-i_ and _alt-a_ is that _alt-a_ also selects the following blanks. @@ -164,14 +179,21 @@ Commands are entered using +:+. unsaved buffers remaining. * +wq+: write current buffer and quit * +b[uffer] +: switch to buffer - * +d[el]b[uf] []+: delete the buffer + * +d[el]b[uf] []+: delete the buffer , use d[el]b[uf]! to force + deleting a modified buffer. * +source +: execute commands in * +runtime +: execute commands in , is relative to kak executable path. - * +exec +: execute as if pressed in normal mode. + * +name +: set current client name + * +exec [-client ] +: execute as if pressed in normal mode. + if client if specified, exec keys in the named client context. + * +eval [-client ] +: execute as if entered in command line + if client if specified, exec command in the named client context. * +echo +: show in status line * +set{b,w,g}