mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 06:20:05 +08:00
45 lines
2.2 KiB
Markdown
45 lines
2.2 KiB
Markdown
---
|
|
title: "Mnemonic key bindings navigation"
|
|
categories: [feature, blog]
|
|
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"
|
|
comments: true
|
|
---
|
|
|
|
# Mnemonic key bindings navigation
|
|
|
|
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 |
|