1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 02:10:05 +08:00
SpaceVim/docs/_posts/2017-05-25-mnemonic-key-bindings-navigation.md

54 lines
2.4 KiB
Markdown
Raw Normal View History

2018-01-13 14:23:06 +08:00
---
2018-01-13 15:54:23 +08:00
title: "Mnemonic key bindings navigation"
2018-05-27 20:54:33 +08:00
categories: [feature, blog]
2020-05-10 14:05:04 +08:00
description: "Key bindings are organized using mnemonic prefixes like b for buffer, p for project, s for search, h for help, etc…"
2023-07-05 11:50:23 +08:00
image: https://img.spacevim.org/89091735-5de96a00-d3de-11ea-85e1-b0fc64537836.gif
commentsID: "Mnemonic key bindings navigation"
2018-01-25 22:57:56 +08:00
comments: true
2018-01-13 14:23:06 +08:00
---
# [Blogs](../blog/) >> Mnemonic key bindings navigation
2018-01-30 20:33:04 +08:00
You don't need to remember any key bindings, as a guide buffer is displayed each time the prefix key is pressed
in normal/visual mode. It lists the available key bindings and their short description.
The prefix can be `[SPC]`, `[Window]`, `<leader>`, when the guide is opened, you can
see the prefix on the statusline.
This will be shown in floating windows if your vim/neovim support this feature.
- vim: `8.1.1364`
- neovim: `v0.4.2`
2023-07-05 11:50:23 +08:00
![float_guide](https://img.spacevim.org/89091735-5de96a00-d3de-11ea-85e1-b0fc64537836.gif)
Otherwise, it will be displayed in split Window.
2018-01-30 20:33:04 +08:00
2023-07-05 11:50:23 +08:00
![mapping guide](https://img.spacevim.org/35568184-9a318082-058d-11e8-9d88-e0eafd1d498d.gif)
2018-01-30 20:33:04 +08:00
## default key binding prefixes
| Prefix name | custom option and default value | description |
| ----------- | ------------------------------------------------------- | ---------------------------------- |
| `[SPC]` | NONE / `<Space>` | default mapping prefix of SpaceVim |
| `[Window]` | `g:spacevim_windows_leader` / `s` | window mapping prefix of SpaceVim |
| `<leader>` | `mapleader` / `\` | default leader prefix of vim/neovim |
2018-01-30 20:33:04 +08:00
By default the guide buffer will be displayed 1000ms after the key has been pressed. You can change the delay by setting `'timeoutlen'` option to your liking (the value is in milliseconds).
for example, after pressing `<Space>` in normal mode, you will see :
![mapping-guide](https://img.spacevim.org/ae8c3168-3337-11e7-8536-ee78d59e5a9c.png)
2018-01-30 20:33:04 +08:00
this guide show you all the available key bindings begin with `[SPC]`, you can type `b` for all the buffer mappings, `p` for project mappings, etc.
## Get paging and help info
after pressing `Ctrl-h` in guide buffer, you will get paging and help info in the statusline.
2018-01-30 20:33:04 +08:00
| keys | descriptions |
| ---- | ----------------------------- |
| `u` | undo pressing |
| `n` | next page of guide buffer |
| `p` | previous page of guide buffer |