1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-13 14:59:10 +08:00

Update the doc of lang#pascal layer

This commit is contained in:
Shidong Wang 2021-02-10 21:26:32 +08:00
parent 5ad7118182
commit 2d9a05299d
2 changed files with 8 additions and 10 deletions

View File

@ -11,13 +11,14 @@ lang: zh
- [模块简介](#模块简介)
- [启用模块](#启用模块)
- [快捷键](#快捷键)
- [运行当前脚本](#运行当前脚本)
<!-- vim-markdown-toc -->
## 模块简介
这一模块为在 SpaceVim 中进行 pascal 开发提供了支持。
这一模块为在 SpaceVim 中进行 pascal 开发提供了支持。默认使用
[free pascal](https://www.freepascal.org/) 作为编译器,在使用
这一模块之前,需要下载并安装编译器。
## 启用模块
@ -30,6 +31,4 @@ lang: zh
## 快捷键
### 运行当前脚本
在编辑 pascal 文件时,可通过快捷键 `SPC l r` 快速异步运行当前文件,运行结果会展示在一个独立的执行窗口内。

View File

@ -9,14 +9,15 @@ description: "This layer is for pascal development, provides syntax highlighting
- [Description](#description)
- [Install](#install)
- [Features](#features)
- [Key bindings](#key-bindings)
<!-- vim-markdown-toc -->
## Description
This layer is for pascal development.
This layer is for pascal development. And the default compiler
is [free pascal](https://www.freepascal.org/), You need to download
the compiler before using this layer.
## Install
@ -26,10 +27,8 @@ To use this configuration layer, update custom configuration file with:
[[layers]]
name = "lang#pascal"
```
## Features
- code runner
## Key bindings
To running a pascal file, you can press `SPC l r` to run current file without loss focus, and the result will be shown in a runner buffer.
Make sure you have `fpc` in your PATH. The key binding `SPC l r` will run
`fpc` command asynchronously. and the result will be shown in a runner buffer.