mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-13 02:05:40 +08:00
parent
e9eb44b97f
commit
6dec5feaaf
13
autoload/SpaceVim/layers/lang/matlab.vim
Normal file
13
autoload/SpaceVim/layers/lang/matlab.vim
Normal 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
|
40
docs/cn/layers/lang/matlab.md
Normal file
40
docs/cn/layers/lang/matlab.md
Normal 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` 快速异步运行当前文件,运行结果会展示在一个独立的执行窗口内。
|
||||
|
||||
|
37
docs/layers/lang/matlab.md
Normal file
37
docs/layers/lang/matlab.md
Normal 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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user