1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 02:20:03 +08:00
SpaceVim/docs/layers/lang/vim.md

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 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 |