2017-10-09 22:41:31 +08:00
|
|
|
---
|
2017-12-12 09:59:27 +08:00
|
|
|
title: "SpaceVim chat layer"
|
2022-02-02 14:15:19 +08:00
|
|
|
description: "SpaceVim chatting layer provides chatting with weixin in vim."
|
2017-10-09 22:41:31 +08:00
|
|
|
---
|
|
|
|
|
2018-06-23 14:37:41 +08:00
|
|
|
# [Available Layers](../) >> chat
|
|
|
|
|
|
|
|
|
|
|
|
<!-- vim-markdown-toc GFM -->
|
|
|
|
|
|
|
|
- [Description](#description)
|
|
|
|
- [Install](#install)
|
2022-04-30 13:28:01 +08:00
|
|
|
- [Layer options](#layer-options)
|
2018-06-23 14:37:41 +08:00
|
|
|
- [Key Mappings](#key-mappings)
|
|
|
|
|
|
|
|
<!-- vim-markdown-toc -->
|
|
|
|
|
|
|
|
## Description
|
2017-04-29 21:30:31 +08:00
|
|
|
|
2021-06-21 20:39:29 +08:00
|
|
|
SpaceVim chatting layer provides chatting feature in vim.
|
2017-04-29 21:30:31 +08:00
|
|
|
|
2023-07-05 11:50:23 +08:00
|
|
|
![vim-chat](https://img.spacevim.org/166000148-4cdbe294-7d61-40e1-b503-63c70ddaf592.png)
|
2022-04-30 02:14:19 +08:00
|
|
|
|
2018-06-23 14:37:41 +08:00
|
|
|
## Install
|
2017-04-29 21:30:31 +08:00
|
|
|
|
2021-06-21 20:39:29 +08:00
|
|
|
To use this configuration layer, add the following snippet to your custom configuration file.
|
2017-04-29 21:30:31 +08:00
|
|
|
|
2018-06-23 14:37:41 +08:00
|
|
|
```toml
|
|
|
|
[[layers]]
|
|
|
|
name = "chat"
|
|
|
|
```
|
2017-04-29 21:30:31 +08:00
|
|
|
|
2022-04-30 13:28:01 +08:00
|
|
|
## Layer options
|
|
|
|
|
|
|
|
1. `gitter_token`: set the token to your gitter account.
|
|
|
|
|
2017-04-29 21:30:31 +08:00
|
|
|
## Key Mappings
|
|
|
|
|
2022-05-01 14:13:34 +08:00
|
|
|
The default key binding to open chat windows is `SPC a h`.
|
2017-04-29 21:30:31 +08:00
|
|
|
|
2022-05-01 14:13:34 +08:00
|
|
|
Whith the chat windows. The following key binding can be use:
|
2017-04-29 21:30:31 +08:00
|
|
|
|
2022-05-01 14:13:34 +08:00
|
|
|
- `Alt + Left/H`: switch to previous channel
|
|
|
|
- `Alt + Right/L`: switch to next channel
|
2022-05-03 11:04:00 +08:00
|
|
|
- `Ctrl-w`: delete characters until next space before cursor
|
2017-04-29 21:30:31 +08:00
|
|
|
|
|
|
|
for more mappings in chatting buffer, please read <kbd>:h vim-chat</kbd>.
|