mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 12:50:04 +08:00
41 lines
1.0 KiB
Markdown
41 lines
1.0 KiB
Markdown
---
|
|
title: "SpaceVim lang#vim layer"
|
|
description: "This layer is for writing Vimscript, including code completion, syntax checking and buffer formatting"
|
|
---
|
|
|
|
# [Available Layers](../../) >> lang#vim
|
|
|
|
<!-- vim-markdown-toc GFM -->
|
|
|
|
- [Description](#description)
|
|
- [Install](#install)
|
|
- [Layer options](#layer-options)
|
|
- [Key bindings](#key-bindings)
|
|
|
|
<!-- vim-markdown-toc -->
|
|
|
|
## Description
|
|
|
|
This layer is for writing vim script, including code completion, syntax checking and buffer formatting
|
|
|
|
## Install
|
|
|
|
To use this configuration layer, update your custom configuration file with:
|
|
|
|
```toml
|
|
[[layers]]
|
|
name = "lang#vim"
|
|
```
|
|
|
|
## Layer options
|
|
|
|
- `auto_generate_doc`: generate help documentation automatically.
|
|
To generate help documentation, you need to install [vimdoc](https://github.com/google/vimdoc)
|
|
|
|
## Key bindings
|
|
|
|
| Key Bindings | Descriptions |
|
|
| ------------ | ----------------------------------------- |
|
|
| `SPC l e` | print the eval under the cursor |
|
|
| `SPC l v` | print the helpfulversion under the cursor |
|