1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:20:04 +08:00
SpaceVim/docs/layers/chat.md

48 lines
1.1 KiB
Markdown
Raw Normal View History

2017-10-09 22:41:31 +08:00
---
2017-12-12 09:59:27 +08:00
title: "SpaceVim chat layer"
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)
- [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
2022-04-30 02:14:19 +08:00
![vim-chat](https://user-images.githubusercontent.com/13142418/166000148-4cdbe294-7d61-40e1-b503-63c70ddaf592.png)
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
## Layer options
1. `gitter_token`: set the token to your gitter account.
2017-04-29 21:30:31 +08:00
## Key Mappings
The default key binding to open chat windows is `SPC a h`.
2017-04-29 21:30:31 +08:00
Whith the chat windows. The following key binding can be use:
2017-04-29 21:30:31 +08:00
- `Alt + Left/H`: switch to previous channel
- `Alt + Right/L`: switch to next channel
- `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>.