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

45 lines
2.2 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]
2018-01-13 14:23:06 +08:00
excerpt: "Key bindings are organized using mnemonic prefixes like b for buffer, p for project, s for search, h for help, etc…"
image: https://user-images.githubusercontent.com/13142418/31550099-c8173ff8-b062-11e7-967e-6378a9c3b467.gif
commentsID: "Mnemonic key bindings navigation"
2018-01-25 22:57:56 +08:00
comments: true
2018-01-13 14:23:06 +08:00
---
# 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]`, `[denite]`, `<leader>` and `[unite]`, when the guide is opened, you can
see the prefix on the statusline.
![mapping guide](https://user-images.githubusercontent.com/13142418/35568184-9a318082-058d-11e8-9d88-e0eafd1d498d.gif)
## 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 |
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://cloud.githubusercontent.com/assets/13142418/25778673/ae8c3168-3337-11e7-8536-ee78d59e5a9c.png)
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 `<C-h>` in guide buffer, you will get paging and help info in the statusline.
| key | description |
| --- | ----------------------------- |
| `u` | undo pressing |
| `n` | next page of guide buffer |
| `p` | previous page of guide buffer |