1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-12 17:55:41 +08:00

Add lang#matlab layer (#2903)

* Add lang#matlab layer

* Add matlab doc
This commit is contained in:
Wang Shidong 2019-06-22 20:34:37 +08:00 committed by GitHub
parent e9eb44b97f
commit 6dec5feaaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 90 additions and 0 deletions

View File

@ -0,0 +1,13 @@
"=============================================================================
" matlab.vim --- matlab support for SpaceVim
" Copyright (c) 2016-2019 Wang Shidong & Contributors
" Author: Wang Shidong < wsdjeg@outlook.com >
" URL: https://spacevim.org
" License: GPLv3
"=============================================================================
function! SpaceVim#layers#lang#matlab#plugins() abort
let plugins = []
call add(plugins, ['wsdjeg/matlab.vim', {'merged' : 0}])
return plugins
endfunction

View File

@ -0,0 +1,40 @@
---
title: "SpaceVim lang#matlab 模块"
description: "该模块为 SpaceVim 提供了 matlab 语言开发支持,包括语法高亮。"
lang: cn
---
# [可用模块](../../) >> lang#matlab
<!-- vim-markdown-toc GFM -->
- [模块简介](#模块简介)
- [功能特性](#功能特性)
- [启用模块](#启用模块)
- [快捷键](#快捷键)
<!-- vim-markdown-toc -->
## 模块简介
该模块为 SpaceVim 提供了 matlab 语言开发支持。
## 功能特性
- 语法高亮
## 启用模块
可通过在配置文件内加入如下配置来启用该模块:
```toml
[[layers]]
name = "lang#matlab"
```
## 快捷键
在编辑 matlab 文件时,可通过快捷键 `SPC l r` 快速异步运行当前文件,运行结果会展示在一个独立的执行窗口内。

View File

@ -0,0 +1,37 @@
---
title: "SpaceVim lang#matlab layer"
description: "This layer adds matlab language support to SpaceVim, including syntax highlighting."
---
# [Available Layers](../../) >> lang#matlab
<!-- vim-markdown-toc GFM -->
- [Description](#description)
- [Features](#features)
- [Install](#install)
- [Running current file](#running-current-file)
<!-- vim-markdown-toc -->
## Description
This layer adds matlab language support to SpaceVim.
## Features
- syntax highlighting
## Install
To use this configuration layer, update custom configuration file with:
```toml
[[layers]]
name = "lang#matlab"
```
## Running current file
To running current file, you can press `SPC l r` to run current file without loss focus, and the result will be shown in a runner buffer.