@@ -21,7 +21,6 @@
21| `F` | Find previous char |
21| `F` | Find previous char |
22| `Home` | Move to the start of the line |
22| `Home` | Move to the start of the line |
23| `End` | Move to the end of the line |
23| `End` | Move to the end of the line |
24−| `m` | Jump to matching bracket |
25| `PageUp` | Move page up |
24| `PageUp` | Move page up |
26| `PageDown` | Move page down |
25| `PageDown` | Move page down |
27| `Ctrl-u` | Move half page up |
26| `Ctrl-u` | Move half page up |
@@ -30,6 +29,7 @@
30| `Ctrl-o` | Jump backward on the jumplist |
29| `Ctrl-o` | Jump backward on the jumplist |
31| `v` | Enter [select (extend) mode](#select--extend-mode) |
30| `v` | Enter [select (extend) mode](#select--extend-mode) |
32| `g` | Enter [goto mode](#goto-mode) |
31| `g` | Enter [goto mode](#goto-mode) |
32+| `m` | Enter [match mode](#match-mode)
33| `:` | Enter command mode |
33| `:` | Enter command mode |
34| `z` | Enter [view mode](#view-mode) |
34| `z` | Enter [view mode](#view-mode) |
35| `Ctrl-w` | Enter [window mode](#window-mode) (maybe will be remove for spc w w later) |
35| `Ctrl-w` | Enter [window mode](#window-mode) (maybe will be remove for spc w w later) |
@@ -70,7 +70,7 @@
70| `Alt-;` | Flip selection cursor and anchor |
70| `Alt-;` | Flip selection cursor and anchor |
71| `%` | Select entire file |
71| `%` | Select entire file |
72| `x` | Select current line, if already selected, extend to next line |
72| `x` | Select current line, if already selected, extend to next line |
73−| `` | Expand selection to parent syntax node TODO: pick a key |
73+| | Expand selection to parent syntax node TODO: pick a key |
74| `J` | join lines inside selection |
74| `J` | join lines inside selection |
75| `K` | keep selections matching the regex TODO: overlapped by hover help |
75| `K` | keep selections matching the regex TODO: overlapped by hover help |
76| `Space` | keep only the primary selection TODO: overlapped by space mode |
76| `Space` | keep only the primary selection TODO: overlapped by space mode |
@@ -144,6 +144,18 @@ Jumps to various locations.
144| `i` | Go to implementation |
144| `i` | Go to implementation |
145| `a` | Go to the last accessed/alternate file |
145| `a` | Go to the last accessed/alternate file |
149+Enter this mode using `m` from normal mode. See the relavant section
150+in [Usage](./usage.md#surround) for an explanation about surround usage.
152+| Key | Description |
153+| ----- | ----------- |
154+| `m` | Goto matching bracket |
155+| `s` `<char>` | Surround current selection with `<char>` |
156+| `r` `<from><to>` | Replace surround character `<from>` with `<to>` |
157+| `d` `<char>` | Delete surround character `<char>` |
147## Object mode
159## Object mode
149TODO: Mappings for selecting syntax nodes (a superset of `[`).
161TODO: Mappings for selecting syntax nodes (a superset of `[`).