mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
readme: use :h map-table
for mapping modes
Based on `:h map-table` https://neovim.io/doc/user/map.html#map-table
This commit is contained in:
parent
a39e0a6516
commit
d542e373f1
1 changed files with 15 additions and 13 deletions
28
README.md
28
README.md
|
@ -412,19 +412,21 @@ nnoremap <leader>m <silent> <cmd>make<CR>
|
||||||
This table describes all modes for the `keymaps` option.
|
This table describes all modes for the `keymaps` option.
|
||||||
You can provide several modes to a single mapping by using a list of strings.
|
You can provide several modes to a single mapping by using a list of strings.
|
||||||
|
|
||||||
| Short | Description |
|
<!-- Based on `:h map-table` https://neovim.io/doc/user/map.html#map-table -->
|
||||||
|-------|--------------------------------------------------|
|
|
||||||
| `"n"` | Normal mode |
|
| Mode | Norm | Ins | Cmd | Vis | Sel | Opr | Term | Lang | Description |
|
||||||
| `"i"` | Insert mode |
|
|--------|------|-----|-----|-----|-----|-----|------|------|-------------|
|
||||||
| `"v"` | Visual and Select mode |
|
| `""` | yes | - | - | yes | yes | yes | - | - | Equivalent to `:map` |
|
||||||
| `"s"` | Select mode |
|
| `"n"` | yes | - | - | - | - | - | - | - | Normal mode |
|
||||||
| `"t"` | Terminal mode |
|
| `"!"` | - | yes | yes | - | - | - | - | - | Insert and command-line mode |
|
||||||
| `"" ` | Normal, visual, select and operator-pending mode |
|
| `"i"` | - | yes | - | - | - | - | - | - | Insert mode |
|
||||||
| `"x"` | Visual mode only, without select |
|
| `"c"` | - | - | yes | - | - | - | - | - | Command-line mode |
|
||||||
| `"o"` | Operator-pending mode |
|
| `"v"` | - | - | - | yes | yes | - | - | - | Visual and Select mode |
|
||||||
| `"!"` | Insert and command-line mode |
|
| `"x"` | - | - | - | yes | - | - | - | - | Visual mode only, without select |
|
||||||
| `"l"` | Insert, command-line and lang-arg mode |
|
| `"s"` | - | - | - | - | yes | - | - | - | Select mode |
|
||||||
| `"c"` | Command-line mode |
|
| `"o"` | - | - | - | - | - | yes | - | - | Operator-pending mode |
|
||||||
|
| `"t"` | - | - | - | - | - | - | yes | - | Terminal mode |
|
||||||
|
| `"l"` | - | yes | yes | - | - | - | - | yes | Insert, command-line and lang-arg mode |
|
||||||
|
|
||||||
Each keymap can specify the following settings in the `options` attrs.
|
Each keymap can specify the following settings in the `options` attrs.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue