on master help sign in
doc: make the order of unimpaired mappings consistent

Most mappings are next `]` then previous `[`, except for a few ones. Fixes #5145

commita02dd17e8214125481a89f7aaa414f0c2285b3be authorClément Delafargue <clement@delafargue.name> dateTue 17 Jan 2023, 09:17 (4 years ago) parent6317e0a
1 file changed+4−4
book/src/keymap.md+4−4
book/src/keymap.md+4−4
@@ -305,10 +305,10 @@ Mappings in the style of [vim-unimpaired](https://github.com/tpope/vim-unimpaire
305305
306306| Key | Description | Command |
307307| ----- | ----------- | ------- |
308−| `[d` | Go to previous diagnostic (**LSP**) | `goto_prev_diag` |
309308| `]d` | Go to next diagnostic (**LSP**) | `goto_next_diag` |
310−| `[D` | Go to first diagnostic in document (**LSP**) | `goto_first_diag` |
309+| `[d` | Go to previous diagnostic (**LSP**) | `goto_prev_diag` |
311310| `]D` | Go to last diagnostic in document (**LSP**) | `goto_last_diag` |
311+| `[D` | Go to first diagnostic in document (**LSP**) | `goto_first_diag` |
312312| `]f` | Go to next function (**TS**) | `goto_next_function` |
313313| `[f` | Go to previous function (**TS**) | `goto_prev_function` |
314314| `]t` | Go to next type definition (**TS**) | `goto_next_class` |
@@ -323,10 +323,10 @@ Mappings in the style of [vim-unimpaired](https://github.com/tpope/vim-unimpaire
323323| `[p` | Go to previous paragraph | `goto_prev_paragraph` |
324324| `]g` | Go to next change | `goto_next_change` |
325325| `[g` | Go to previous change | `goto_prev_change` |
326−| `[G` | Go to first change | `goto_first_change` |
327326| `]G` | Go to last change | `goto_last_change` |
328−| `[Space` | Add newline above | `add_newline_above` |
327+| `[G` | Go to first change | `goto_first_change` |
329328| `]Space` | Add newline below | `add_newline_below` |
329+| `[Space` | Add newline above | `add_newline_above` |
330330
331331## Insert mode
332332