From fe199b6f15ae3e01d1a3908077888688f9aa17da Mon Sep 17 00:00:00 2001 From: Randy8080 Date: Wed, 15 Dec 2021 15:24:59 +0800 Subject: [PATCH] S is a synonym of cc --- vim.md | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/vim.md b/vim.md index cdba3b1..b2b801f 100644 --- a/vim.md +++ b/vim.md @@ -107,15 +107,15 @@ G gg H M L k j ▶ print("to") ### Insert Mode -| Shortcut | Description | -|------------------------|-----------------------------| -| `i` _/_ `a` | Insert before/after cursor | -| `I` _/_ `A` | Insert start/end of line | -| `o` _/_ `O` _(letter)_ | Insert new line below/above | -| `s` _/_ `S` | Delete char/line and insert | -| `C` | Change to end of line | -| `gi` | Insert at last insert point | -| `Esc` _\|_ `` | Exit insert mode | +| Shortcut | Description | +|------------------------|-------------------------------| +| `i` _/_ `a` | Insert before/after cursor | +| `I` _/_ `A` | Insert start/end of line | +| `o` _/_ `O` _(letter)_ | Insert new line below/above | +| `s` _/_ `S` | Delete char/line and insert | +| `C` _/_ `cc` | Change to end of/current line | +| `gi` | Insert at last insert point | +| `Esc` _\|_ `` | Exit insert mode | {.shortcuts} @@ -244,20 +244,20 @@ Combine [operators](#available-operators) with [motions](#motions) to use them ### Examples {.row-span-2} -| Combination | Description | -|----------------------|-----------------------------| -| `d`d | Delete current line | -| `d`j | Delete two lines | -| `d`w | Delete to next word | -| `d`b | Delete to beginning of word | -| `d`fa | Delete until `a` char | -| `d`/hello | Delete until `hello` | -| `c`c | Change current line | -| `y`y | Copy current line | -| `>`j | Indent 2 lines | -| gg`d`G | Delete a complete document | -| gg`=`G | Indent a complete document | -| gg`y`G | Copy a whole document | +| Combination | Description | +|----------------------|---------------------------------------| +| `d`d | Delete current line | +| `d`j | Delete two lines | +| `d`w | Delete to next word | +| `d`b | Delete to beginning of word | +| `d`fa | Delete until `a` char | +| `d`/hello | Delete until `hello` | +| `c`c | Change current line, synonym with `S` | +| `y`y | Copy current line | +| `>`j | Indent 2 lines | +| gg`d`G | Delete a complete document | +| gg`=`G | Indent a complete document | +| gg`y`G | Copy a whole document | {.show-header}