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

41 lines
1.0 KiB
Markdown
Raw Permalink Normal View History

2017-10-07 23:46:22 +08:00
---
title: "SpaceVim lang#vim layer"
description: "This layer is for writing Vimscript, including code completion, syntax checking and buffer formatting"
2017-10-07 23:46:22 +08:00
---
2018-06-23 14:37:41 +08:00
# [Available Layers](../../) >> lang#vim
2017-10-07 23:46:22 +08:00
<!-- vim-markdown-toc GFM -->
- [Description](#description)
2018-06-23 14:37:41 +08:00
- [Install](#install)
- [Layer options](#layer-options)
2017-10-07 23:46:22 +08:00
- [Key bindings](#key-bindings)
<!-- vim-markdown-toc -->
## Description
This layer is for writing vim script, including code completion, syntax checking and buffer formatting
2017-10-07 23:46:22 +08:00
2018-06-23 14:37:41 +08:00
## Install
2017-10-07 23:46:22 +08:00
2021-06-21 20:39:29 +08:00
To use this configuration layer, update your custom configuration file with:
2018-06-23 14:37:41 +08:00
```toml
[[layers]]
name = "lang#vim"
```
2017-10-07 23:46:22 +08:00
## Layer options
- `auto_generate_doc`: generate help documentation automatically.
To generate help documentation, you need to install [vimdoc](https://github.com/google/vimdoc)
2017-10-07 23:46:22 +08:00
## Key bindings
2019-02-03 20:51:01 +08:00
| Key Bindings | Descriptions |
| ------------ | ----------------------------------------- |
| `SPC l e` | print the eval under the cursor |
| `SPC l v` | print the helpfulversion under the cursor |