mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 01:40:05 +08:00
Doc: Correct documentations by ChineseLinter and fix typos. (#2452)
This commit is contained in:
parent
3ca42ad7ec
commit
536c1cba94
22
README.cn.md
22
README.cn.md
@ -7,7 +7,7 @@
|
|||||||
[![Version](https://img.shields.io/badge/version-1.1.0--dev-8700FF.svg)](https://github.com/SpaceVim/SpaceVim/releases)
|
[![Version](https://img.shields.io/badge/version-1.1.0--dev-8700FF.svg)](https://github.com/SpaceVim/SpaceVim/releases)
|
||||||
[![GPLv3 License](https://img.shields.io/badge/license-GPLv3-blue.svg)](https://github.com/SpaceVim/SpaceVim/blob/master/LICENSE)
|
[![GPLv3 License](https://img.shields.io/badge/license-GPLv3-blue.svg)](https://github.com/SpaceVim/SpaceVim/blob/master/LICENSE)
|
||||||
|
|
||||||
SpaceVim 是一个社区驱动的模块化 vim/neovim 配置集合,以模块的方式组织管理插件以
|
SpaceVim 是一个社区驱动的模块化 Vim/Neovim 配置集合,以模块的方式组织管理插件以
|
||||||
及相关配置,为不同的语言开发量身定制了相关的开发模块,该模块提供代码自动补全,
|
及相关配置,为不同的语言开发量身定制了相关的开发模块,该模块提供代码自动补全,
|
||||||
语法检查、格式化、调试、REPL 等特性。用户仅需载入相关语言的模块即可得到一个开箱
|
语法检查、格式化、调试、REPL 等特性。用户仅需载入相关语言的模块即可得到一个开箱
|
||||||
即用的 Vim-IDE。
|
即用的 Vim-IDE。
|
||||||
@ -16,7 +16,7 @@ SpaceVim 是一个社区驱动的模块化 vim/neovim 配置集合,以模块
|
|||||||
|
|
||||||
Github: <https://github.com/SpaceVim/SpaceVim>
|
Github: <https://github.com/SpaceVim/SpaceVim>
|
||||||
|
|
||||||
码 云 : <https://gitee.com/SpaceVim/SpaceVim>
|
码云:<https://gitee.com/SpaceVim/SpaceVim>
|
||||||
|
|
||||||
![welcome-page](https://user-images.githubusercontent.com/13142418/50423286-5b33a400-088e-11e9-830c-792ce1c7c126.png)
|
![welcome-page](https://user-images.githubusercontent.com/13142418/50423286-5b33a400-088e-11e9-830c-792ce1c7c126.png)
|
||||||
|
|
||||||
@ -33,7 +33,7 @@ Github : <https://github.com/SpaceVim/SpaceVim>
|
|||||||
<!-- vim-markdown-toc GFM -->
|
<!-- vim-markdown-toc GFM -->
|
||||||
|
|
||||||
- [最新特新](#最新特新)
|
- [最新特新](#最新特新)
|
||||||
- [多光标Iedit模式](#多光标iedit模式)
|
- [多光标 Iedit 模式](#多光标-iedit-模式)
|
||||||
- [高亮光标下的函数](#高亮光标下的函数)
|
- [高亮光标下的函数](#高亮光标下的函数)
|
||||||
- [实时代码检索](#实时代码检索)
|
- [实时代码检索](#实时代码检索)
|
||||||
- [快捷键辅助导航](#快捷键辅助导航)
|
- [快捷键辅助导航](#快捷键辅助导航)
|
||||||
@ -42,7 +42,7 @@ Github : <https://github.com/SpaceVim/SpaceVim>
|
|||||||
- [安装](#安装)
|
- [安装](#安装)
|
||||||
- [Linux 或 macOS](#linux-或-macos)
|
- [Linux 或 macOS](#linux-或-macos)
|
||||||
- [Windows](#windows)
|
- [Windows](#windows)
|
||||||
- [捐助SpaceVim](#捐助spacevim)
|
- [捐助 SpaceVim](#捐助-spacevim)
|
||||||
|
|
||||||
<!-- vim-markdown-toc -->
|
<!-- vim-markdown-toc -->
|
||||||
|
|
||||||
@ -54,7 +54,7 @@ Github : <https://github.com/SpaceVim/SpaceVim>
|
|||||||
|
|
||||||
SpaceVim 内置了一种特殊的模式,Iedit 模式,这种模式提供了多光标支持,不同于已有插件的实现,
|
SpaceVim 内置了一种特殊的模式,Iedit 模式,这种模式提供了多光标支持,不同于已有插件的实现,
|
||||||
该模式支持两种状态:`iedit-Normal` 和 `iedit-Insert`。默认情况下,多光标输入时,`iedit-normal`
|
该模式支持两种状态:`iedit-Normal` 和 `iedit-Insert`。默认情况下,多光标输入时,`iedit-normal`
|
||||||
模式状态栏时是红色,而 `iedit-insert` 模式时是绿色,当然这根据所选择主题决定。
|
模式状态栏时是红色,而 `iedit-insert` 模式时是绿色,当然这由所选择的主题决定。
|
||||||
|
|
||||||
![iedit mode](https://user-images.githubusercontent.com/13142418/44941560-be2a9800-add2-11e8-8fa5-e6118ff9ddcb.gif)
|
![iedit mode](https://user-images.githubusercontent.com/13142418/44941560-be2a9800-add2-11e8-8fa5-e6118ff9ddcb.gif)
|
||||||
|
|
||||||
@ -62,7 +62,7 @@ SpaceVim 内置了一种特殊的模式,Iedit 模式,这种模式提供了
|
|||||||
|
|
||||||
SpaceVim 支持高亮当前光标函数,并且启动一个特殊模式,在该模式下可以快捷地切换高亮区域
|
SpaceVim 支持高亮当前光标函数,并且启动一个特殊模式,在该模式下可以快捷地切换高亮区域
|
||||||
(方法内、屏幕内、整个文件内),并且可以快速在高亮函数间跳转、切换高亮状态(高亮、取消高亮),
|
(方法内、屏幕内、整个文件内),并且可以快速在高亮函数间跳转、切换高亮状态(高亮、取消高亮),
|
||||||
并且可以根据已选择的位置计入 iedit 模式。
|
并且可以根据已选择的位置计入 Iedit 模式。
|
||||||
|
|
||||||
![highlight cursor symbol](https://user-images.githubusercontent.com/13142418/36210381-e6dffde6-1163-11e8-9b35-0bf262e6f22b.gif)
|
![highlight cursor symbol](https://user-images.githubusercontent.com/13142418/36210381-e6dffde6-1163-11e8-9b35-0bf262e6f22b.gif)
|
||||||
|
|
||||||
@ -82,7 +82,7 @@ SpaceVim 自带的 FlyGrep 这个插件可以根据输入实时搜索项目代
|
|||||||
|
|
||||||
### 快捷键描述系统
|
### 快捷键描述系统
|
||||||
|
|
||||||
通过快捷键描述系统,你可以清楚的了解到一个快捷键的功能,并且可以快速跳转到快捷键定义的位置;
|
通过快捷键描述系统,你可以清楚的了解到一个快捷键的功能,并且可以快速跳转到快捷键定义的位置;
|
||||||
比如,通过 `SPC h d k` 启动快捷键描述系统,然后按下所需描述快捷键 `SPC b n`,就会弹出一个描述
|
比如,通过 `SPC h d k` 启动快捷键描述系统,然后按下所需描述快捷键 `SPC b n`,就会弹出一个描述
|
||||||
窗口,在改窗口可以通过快捷键 `gd` 快速跳转到快捷键定义处。
|
窗口,在改窗口可以通过快捷键 `gd` 快速跳转到快捷键定义处。
|
||||||
|
|
||||||
@ -90,7 +90,7 @@ SpaceVim 自带的 FlyGrep 这个插件可以根据输入实时搜索项目代
|
|||||||
|
|
||||||
### 异步插件管理器
|
### 异步插件管理器
|
||||||
|
|
||||||
SpaceVim 利用了 vim8 和 neovim 最新的异步机制,实现了一套异步插件下载及更新插件,而插件运行管理采用的是 [dein.vim](https://github.com/Shougo/dein.vim/)。
|
SpaceVim 利用了 Vim 8 和 Neovim 最新的异步机制,实现了异步插件下载及更新,而插件运行管理采用的是 [dein.vim](https://github.com/Shougo/dein.vim/)。
|
||||||
|
|
||||||
![UI for dein](https://user-images.githubusercontent.com/13142418/34907332-903ae968-f842-11e7-8ac9-07fcc9940a53.gif)
|
![UI for dein](https://user-images.githubusercontent.com/13142418/34907332-903ae968-f842-11e7-8ac9-07fcc9940a53.gif)
|
||||||
|
|
||||||
@ -104,7 +104,7 @@ SpaceVim 利用了 vim8 和 neovim 最新的异步机制,实现了一套异步
|
|||||||
curl -sLf https://spacevim.org/cn/install.sh | bash
|
curl -sLf https://spacevim.org/cn/install.sh | bash
|
||||||
```
|
```
|
||||||
|
|
||||||
安装结束后,初次打开 `vim` 或者 `gvim` 时, SpaceVim 会**自动**下载并安装插件。
|
安装结束后,初次打开 `Vim` 或者 `gVim` 时,SpaceVim 会**自动**下载并安装插件。
|
||||||
|
|
||||||
如果需要获取安装脚本的帮助信息,可以执行如下命令,包括定制安装、更新和卸载等。
|
如果需要获取安装脚本的帮助信息,可以执行如下命令,包括定制安装、更新和卸载等。
|
||||||
|
|
||||||
@ -114,10 +114,10 @@ curl -sLf https://spacevim.org/cn/install.sh | bash -s -- -h
|
|||||||
|
|
||||||
### Windows
|
### Windows
|
||||||
|
|
||||||
window 下最快捷的安装方法是下载安装脚本 [install.cmd](https://spacevim.org/cn/install.cmd) 并运行。
|
Windows 下最快捷的安装方法是下载安装脚本 [install.cmd](https://spacevim.org/cn/install.cmd) 并运行。
|
||||||
|
|
||||||
## 捐助 SpaceVim
|
## 捐助 SpaceVim
|
||||||
|
|
||||||
| 微信 | 支付宝 |
|
| 微信 | 支付宝 |
|
||||||
| ------------------------------------------------------------------------ | -------------------------------------------------------------------------- |
|
| -------------------------------------------------------- | ---------------------------------------------------------- |
|
||||||
| <img src="docs/img/weixin.png" height="150" width="150"> | <img src="docs/img/zhifubao.png" height="150" width="150"> |
|
| <img src="docs/img/weixin.png" height="150" width="150"> | <img src="docs/img/zhifubao.png" height="150" width="150"> |
|
||||||
|
33
README.md
33
README.md
@ -19,8 +19,8 @@
|
|||||||
|
|
||||||
## About SpaceVim
|
## About SpaceVim
|
||||||
|
|
||||||
SpaceVim is a community-driven modular vim distribution. It manages collections
|
SpaceVim is a community-driven modular Vim distribution. It manages collections
|
||||||
of plugins in layers, which help collect related packages together to provide IDE-like features.
|
of plugins in layers, which help to collect related packages together to provide IDE-like features.
|
||||||
SpaceVim is not just a vimrc but an ultimate Vim configuration, It contains many built-in features.
|
SpaceVim is not just a vimrc but an ultimate Vim configuration, It contains many built-in features.
|
||||||
|
|
||||||
![welcome-page](https://user-images.githubusercontent.com/13142418/50423286-5b33a400-088e-11e9-830c-792ce1c7c126.png)
|
![welcome-page](https://user-images.githubusercontent.com/13142418/50423286-5b33a400-088e-11e9-830c-792ce1c7c126.png)
|
||||||
@ -56,15 +56,15 @@ This is a list of latest features implemented in SpaceVim:
|
|||||||
|
|
||||||
**Use toml as default configuration**
|
**Use toml as default configuration**
|
||||||
|
|
||||||
here is an example for using toml as SpaceVim config:
|
Here is an example for using toml as SpaceVim config:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
# This is basic configuration example for SpaceVim
|
# This is basic configuration example for SpaceVim
|
||||||
|
|
||||||
# All SpaceVim option below [option] section
|
# All SpaceVim options below [option] section
|
||||||
[options]
|
[options]
|
||||||
# set spacevim theme. by default colorscheme layer is not loaded,
|
# set spacevim theme. by default colorscheme layer is not loaded,
|
||||||
# if you want to use more colorscheme, please load the colorscheme
|
# if you want to use more colorschemes, please load the colorscheme
|
||||||
# layer
|
# layer
|
||||||
colorscheme = "gruvbox"
|
colorscheme = "gruvbox"
|
||||||
colorscheme_bg = "dark"
|
colorscheme_bg = "dark"
|
||||||
@ -80,7 +80,7 @@ here is an example for using toml as SpaceVim config:
|
|||||||
enable_tabline_filetype_icon = false
|
enable_tabline_filetype_icon = false
|
||||||
enable_statusline_mode = false
|
enable_statusline_mode = false
|
||||||
statusline_unicode_symbols = false
|
statusline_unicode_symbols = false
|
||||||
# Enable vim compatible mode, avoid changing origin vim key bindings
|
# Enable Vim compatible mode, avoid changing origin Vim key bindings
|
||||||
vimcompatible = true
|
vimcompatible = true
|
||||||
|
|
||||||
# Enable autocomplete layer
|
# Enable autocomplete layer
|
||||||
@ -97,7 +97,7 @@ default_height = 30
|
|||||||
|
|
||||||
**Iedit mode**
|
**Iedit mode**
|
||||||
|
|
||||||
SpaceVim uses powerful iedit mode to quick edit multiple occurrences of a symbol or selection. Two new modes:`iedit-Normal`/`iedit-Insert`
|
SpaceVim uses a powerful iedit mode to quick edit multiple occurrences of a symbol or selection. Two new modes:`iedit-Normal`/`iedit-Insert`.
|
||||||
|
|
||||||
The default color for iedit is `red`/`green` which is based on the current colorscheme.
|
The default color for iedit is `red`/`green` which is based on the current colorscheme.
|
||||||
|
|
||||||
@ -112,7 +112,7 @@ a transient state to easily navigate and rename this symbol.
|
|||||||
|
|
||||||
[**Fly Grep in Vim**](https://spacevim.org/grep-on-the-fly-in-spacevim/)
|
[**Fly Grep in Vim**](https://spacevim.org/grep-on-the-fly-in-spacevim/)
|
||||||
|
|
||||||
With this feature, vim will display the searching result as you type. Of course, it is running
|
With this feature, Vim will display the searching result as you type. Of course, it is running
|
||||||
asynchronously. Before using this feature, you need to install a searching tool. FlyGrep works
|
asynchronously. Before using this feature, you need to install a searching tool. FlyGrep works
|
||||||
through search tools: `ag`, `rg`, `ack`, `pt` and `grep`, Choose one you like.
|
through search tools: `ag`, `rg`, `ack`, `pt` and `grep`, Choose one you like.
|
||||||
|
|
||||||
@ -127,13 +127,13 @@ The mapping guide is also available for `g`, `z`, and `s`.
|
|||||||
|
|
||||||
[**Help description for key bindings**](https://spacevim.org/help-description-for-key-bindings/)
|
[**Help description for key bindings**](https://spacevim.org/help-description-for-key-bindings/)
|
||||||
|
|
||||||
use <kbd>SPC h d k</kbd> to get the help description of a key binding, and `gd` to find definition of key bindings.
|
Use <kbd>SPC h d k</kbd> to get the help description of a key binding, and `gd` to find definition of key bindings.
|
||||||
|
|
||||||
![describe key bindings](https://user-images.githubusercontent.com/13142418/35568829-e3c8e74c-058f-11e8-8fa8-c0e046d8add3.gif)
|
![describe key bindings](https://user-images.githubusercontent.com/13142418/35568829-e3c8e74c-058f-11e8-8fa8-c0e046d8add3.gif)
|
||||||
|
|
||||||
[**Asynchronous plugin manager**](https://spacevim.org/Asynchronous-plugin-manager/)
|
[**Asynchronous plugin manager**](https://spacevim.org/Asynchronous-plugin-manager/)
|
||||||
|
|
||||||
create an UI for [dein.vim](https://github.com/Shougo/dein.vim/) - the best asynchronous vim plugin manager
|
Create an UI for [dein.vim](https://github.com/Shougo/dein.vim/) - the best asynchronous vim plugin manager
|
||||||
|
|
||||||
![UI for dein](https://user-images.githubusercontent.com/13142418/34907332-903ae968-f842-11e7-8ac9-07fcc9940a53.gif)
|
![UI for dein](https://user-images.githubusercontent.com/13142418/34907332-903ae968-f842-11e7-8ac9-07fcc9940a53.gif)
|
||||||
|
|
||||||
@ -159,13 +159,12 @@ For more features, please read [SpaceVim's Blog](https://spacevim.org/blog/)
|
|||||||
|
|
||||||
### Support SpaceVim
|
### Support SpaceVim
|
||||||
|
|
||||||
The best way to support SpaceVim is to contribute to it either by reporting bugs,
|
The best way to support SpaceVim is to contribute to it either by reporting bugs.
|
||||||
helping the community on the [Gitter Chat](https://gitter.im/SpaceVim/SpaceVim) or sending pull requests.
|
Helping the community on the [Gitter Chat](https://gitter.im/SpaceVim/SpaceVim) or sending pull requests.
|
||||||
|
|
||||||
For more info please check our [development guidelines](https://spacevim.org/development/).
|
For more information please check our [development guidelines](https://spacevim.org/development/).
|
||||||
|
|
||||||
If you want to show your support financially you can buy a drink for the maintainer by
|
If you want to show your support financially you can buy a drink for the maintainer by clicking following icon.
|
||||||
clicking following icon.
|
|
||||||
|
|
||||||
<a href='https://ko-fi.com/spacevim' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://az743702.vo.msecnd.net/cdn/kofi4.png?v=f' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
|
<a href='https://ko-fi.com/spacevim' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://az743702.vo.msecnd.net/cdn/kofi4.png?v=f' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
|
||||||
|
|
||||||
@ -177,7 +176,7 @@ Bitcoin: 1DtuVeg81c2L9NEhDaVTAAbrCR3pN5xPFv
|
|||||||
|
|
||||||
### Credits & Thanks
|
### Credits & Thanks
|
||||||
|
|
||||||
This project exists thanks to all the people who have [contributed](CONTRIBUTING.md):
|
This project exists to thank all the people who have [contributed](CONTRIBUTING.md):
|
||||||
<a href="https://github.com/SpaceVim/SpaceVim/graphs/contributors"><img src="https://opencollective.com/spacevim/contributors.svg?width=890&button=false" /></a>
|
<a href="https://github.com/SpaceVim/SpaceVim/graphs/contributors"><img src="https://opencollective.com/spacevim/contributors.svg?width=890&button=false" /></a>
|
||||||
|
|
||||||
- [@Gabirel](https://github.com/Gabirel) and his [Hack-SpaceVim](https://github.com/Gabirel/Hack-SpaceVim)
|
- [@Gabirel](https://github.com/Gabirel) and his [Hack-SpaceVim](https://github.com/Gabirel/Hack-SpaceVim)
|
||||||
@ -185,6 +184,6 @@ This project exists thanks to all the people who have [contributed](CONTRIBUTING
|
|||||||
- [vimdoc](https://github.com/google/vimdoc) generate doc file for SpaceVim
|
- [vimdoc](https://github.com/google/vimdoc) generate doc file for SpaceVim
|
||||||
- [Rafael Bodill](https://github.com/rafi) and his vim-config
|
- [Rafael Bodill](https://github.com/rafi) and his vim-config
|
||||||
- [Bailey Ling](https://github.com/bling) and his dotvim
|
- [Bailey Ling](https://github.com/bling) and his dotvim
|
||||||
- authors of all the plugins used in SpaceVim.
|
- Authors of all the plugins used in SpaceVim.
|
||||||
|
|
||||||
<!-- vim:set nowrap: -->
|
<!-- vim:set nowrap: -->
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "关于"
|
title: "关于"
|
||||||
description: "SpaceVim 是一个社区驱动的模块化 vim 配置,以模块的方式组织管理插件和配置"
|
description: "SpaceVim 是一个社区驱动的模块化的 Vim IDE,以模块的方式组织管理插件和配置。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -8,27 +8,27 @@ lang: cn
|
|||||||
|
|
||||||
## 版本
|
## 版本
|
||||||
|
|
||||||
[SpaceVim](https://github.com/SpaceVim/SpaceVim) 是一个社区驱动的 vim 配置,支持 vim 和 neovim。SpaceVim
|
[SpaceVim](https://github.com/SpaceVim/SpaceVim) 是一个社区驱动的 Vim 配置,支持 Vim 和 Neovim。
|
||||||
使用模块的方式来组织插件,对新手更加友好。
|
SpaceVim 使用模块的方式来组织插件,对新手更加友好。
|
||||||
|
|
||||||
## 目标
|
## 目标
|
||||||
|
|
||||||
- 提供可跨平台的优雅的用户体验.
|
- 提供可跨平台的优雅的用户体验。
|
||||||
- 为不同语言开发提供完整的解决方案.
|
- 为不同语言开发提供完整的解决方案。
|
||||||
|
|
||||||
## 标准
|
## 标准
|
||||||
|
|
||||||
- 兼容 Vim 和 Neovim,尽量确保 Vim 下和 Neovim 下有相同的用户体验
|
- 兼容 Vim 和 Neovim,尽量确保 Vim 下和 Neovim 下有相同的用户体验
|
||||||
- 兼容 Vim 7.4 或者无 +py/+py3/+lua 等特性的 Vim
|
- 兼容 Vim 7.4 或者无 +py/+py3/+lua 等特性的 Vim
|
||||||
- 不要从 origin 回归.
|
- 不要从 origin 回归
|
||||||
- 通过权衡成本和收益来决定结果.
|
- 通过权衡成本和收益来决定结果
|
||||||
- 收益与传统相比较,当收益是压倒性的时候,我们选择收益,而非坚持传统.
|
- 收益与传统相比较,当收益是压倒性的时候,我们选择收益,而非坚持传统
|
||||||
- 给可用性一个机会.
|
- 给可用性一个机会
|
||||||
|
|
||||||
## 鸣谢
|
## 鸣谢
|
||||||
|
|
||||||
- 开发者: [Wang Shidong](https://github.com/wsdjeg)
|
- 开发者:[Wang Shidong](https://github.com/wsdjeg)
|
||||||
- [![贡献者](https://img.shields.io/github/contributors/SpaceVim/SpaceVim.svg)](https://github.com/SpaceVim/SpaceVim/graphs/contributors)
|
- [![贡献者](https://img.shields.io/github/contributors/SpaceVim/SpaceVim.svg)](https://github.com/SpaceVim/SpaceVim/graphs/contributors)
|
||||||
- [vimdoc](https://github.com/google/vimdoc) 自动生成 vim 文档
|
- [vimdoc](https://github.com/google/vimdoc) 自动生成 Vim 文档
|
||||||
- [Rafael Bodill](https://github.com/rafi) 的 vim 配置
|
- [Rafael Bodill](https://github.com/rafi) 的 Vim 配置
|
||||||
- [Bailey Ling](https://github.com/bling) 的 vim 配置
|
- [Bailey Ling](https://github.com/bling) 的 Vim 配置
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "公共 API"
|
title: "公共 API"
|
||||||
description: "SpaceVim 公共 API 提供了一套开发插件的公共函数,以及 neovim 和 vim 的兼容组件"
|
description: "SpaceVim 公共 API 提供了一套开发插件的公共函数,以及 Neovim 和 Vim 的兼容组件。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -23,7 +23,7 @@ lang: cn
|
|||||||
|
|
||||||
可以通过 `SpaceVim#api#import()` 函数导入相关 API,参考以下示例:
|
可以通过 `SpaceVim#api#import()` 函数导入相关 API,参考以下示例:
|
||||||
|
|
||||||
```viml
|
```vim
|
||||||
" 导入 file API,并赋值给变量 s:file
|
" 导入 file API,并赋值给变量 s:file
|
||||||
let s:file = SpaceVim#api#import('file')
|
let s:file = SpaceVim#api#import('file')
|
||||||
" 导入 system API,并赋值给变量 s:system
|
" 导入 system API,并赋值给变量 s:system
|
||||||
@ -31,7 +31,7 @@ let s:system = SpaceVim#api#import('system')
|
|||||||
|
|
||||||
" 调用 system API 的 isWindows 成员变量
|
" 调用 system API 的 isWindows 成员变量
|
||||||
if s:system.isWindows
|
if s:system.isWindows
|
||||||
echom "Os is Windows"
|
echom "OS is Windows"
|
||||||
endif
|
endif
|
||||||
echom s:file.separator
|
echom s:file.separator
|
||||||
echom s:file.pathSeparator
|
echom s:file.pathSeparator
|
||||||
@ -44,12 +44,12 @@ echom s:file.pathSeparator
|
|||||||
## 可用 APIs
|
## 可用 APIs
|
||||||
|
|
||||||
| 名称 | 描述 |
|
| 名称 | 描述 |
|
||||||
| ------------------------------------- | ----------------------------------------------------------------------- |
|
| ------------------------------------- | ------------------------------------------------------------------------- |
|
||||||
| [data#dict](data/dict/) | data#dict api 提供了一些处理字典变量的常用方法 |
|
| [data#dict](data/dict/) | data#dict API 提供了一些处理字典变量的常用方法,包括基础的增删改查。 |
|
||||||
| [file](file/) | 文件函数提供了基础的文件读写相关函数,兼容不同系统平台。 |
|
| [file](file/) | 文件函数提供了基础的文件读写相关函数,兼容不同系统平台。 |
|
||||||
| [job](job/) | 兼容 neovim 和 vim 的异步协同 API,对于旧版 vim 采用非异步机制 |
|
| [job](job/) | 兼容 Neovim 和 Vim 的异步协同 API,对于旧版 Vim 采用非异步机制。 |
|
||||||
| [system](system/) | system 函数提供了系统相关函数,包括判断当前系统平台,文件格式等函数。 |
|
| [system](system/) | system 函数提供了系统相关函数,包括判断当前系统平台,文件格式等函数。 |
|
||||||
| [unicode#spinners](unicode/spinners/) | unicode#spinners API 可启用一个定时器,根据指定的名称定时更新进度条符号 |
|
| [unicode#spinners](unicode/spinners/) | unicode#spinners API 可启用一个定时器,根据指定的名称定时更新进度条符号。 |
|
||||||
| [vim#command](vim/command/) | vim#command API 提供一些设置和获取 Vim 命令的基础函数。 |
|
| [vim#command](vim/command/) | vim#command API 提供一些设置和获取 Vim 命令的基础函数。 |
|
||||||
| [vim#highlight](vim/highlight/) | vim#highlight API 提供一些设置和获取 Vim 高亮信息的基础函数。 |
|
| [vim#highlight](vim/highlight/) | vim#highlight API 提供一些设置和获取 Vim 高亮信息的基础函数。 |
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "data#dict api"
|
title: "data#dict api"
|
||||||
description: "data#dict api 提供了一些处理字典变量的常用方法"
|
description: "data#dict API 提供了一些处理字典变量的常用方法,包括基础的增删改查。"
|
||||||
---
|
---
|
||||||
|
|
||||||
# [Available APIs](../../) >> data#dict
|
# [Available APIs](../../) >> data#dict
|
||||||
|
@ -6,7 +6,7 @@ lang: cn
|
|||||||
|
|
||||||
# SpaceVim 中文博客
|
# SpaceVim 中文博客
|
||||||
|
|
||||||
SpaceVim 中文博客主要公布最新版本发布、新特性预览、以及一些 SpaceVim 及 Vim
|
SpaceVim 中文博客主要公布最新版本发布、新特性预览以及一些 SpaceVim 及 Vim
|
||||||
相关的使用教程,可通过 RSS [订阅本博客](../../feed.xml):
|
相关的使用教程,可通过 RSS [订阅本博客](../../feed.xml):
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "约定"
|
title: "约定"
|
||||||
description: "描述贡献代码所需遵循的约定俗成的规范,包括 Vim 脚本的代码规范以及 markdown 文件的代码规范。"
|
description: "描述贡献代码所需遵循的约定俗成的规范,包括 Vim 脚本的代码规范以及 MarkDown 文件的代码规范。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -34,7 +34,7 @@ lang: cn
|
|||||||
- [连续行](#连续行)
|
- [连续行](#连续行)
|
||||||
- [命名](#命名)
|
- [命名](#命名)
|
||||||
- [markdown 代码规范](#markdown-代码规范)
|
- [markdown 代码规范](#markdown-代码规范)
|
||||||
- [感谢:](#感谢)
|
- [感谢:](#感谢)
|
||||||
|
|
||||||
<!-- vim-markdown-toc -->
|
<!-- vim-markdown-toc -->
|
||||||
|
|
||||||
@ -80,11 +80,11 @@ Vim 具有高度可定制性。用户可以更改很多的默认设置,包括
|
|||||||
|
|
||||||
**避免命令意想不到的副作用**
|
**避免命令意想不到的副作用**
|
||||||
|
|
||||||
避免使用 :s[ubtitute] 因为它引动光标并打印错误消息。首选功能(例如 search()) 比 s[ubtitute] 更适用于脚本。
|
避免使用 `:s[ubtitute]` 因为它引动光标并打印错误消息。首选功能(例如 search()) 比 s[ubtitute] 更适用于脚本。
|
||||||
|
|
||||||
这意味着 g 标志取决于上层中 gdefault 设置。如果你用了 :subtitute 你必须要保存 gdefault, 把它设置为 0 或 1 预先生成替换并且在操作完成后还原它。
|
这意味着 g 标志取决于上层中 gdefault 设置。如果你用了 `:subtitute` 你必须要保存 gdefault, 把它设置为 0 或 1 预先生成替换并且在操作完成后还原它。
|
||||||
For many Vim commands, functions exist that do the same thing with fewer side effects. See :help functions() for a list of built-in functions.
|
For many Vim commands, functions exist that do the same thing with fewer side effects. See `:help functions()` for a list of built-in functions.
|
||||||
有很多内置的Vim命令,函数,可以在更小的影响下完成同样的事情。查看:help functions() 查看内置的函数表。
|
有很多内置的 Vim 命令,函数,可以在更小的影响下完成同样的事情。查看 `:help functions()` 查看内置的函数表。
|
||||||
|
|
||||||
#### 脆弱命令
|
#### 脆弱命令
|
||||||
|
|
||||||
@ -123,7 +123,7 @@ Vim 脚本在处理一些类型(style)时有不安全,不直观的行为。举
|
|||||||
|
|
||||||
在使用变量前,明确检查变量的类型。使用 maktaba#ensure 中的函数(functions from maktaba#ensure) 或 check maktaba#value 或 type() 找出你自己的错误。
|
在使用变量前,明确检查变量的类型。使用 maktaba#ensure 中的函数(functions from maktaba#ensure) 或 check maktaba#value 或 type() 找出你自己的错误。
|
||||||
|
|
||||||
使用 :unlet 对变量使用(:unlet)可能更改变量的类型,尤其是在循环中赋值的时候。
|
使用 `:unlet` 对变量使用(:unlet)可能更改变量的类型,尤其是在循环中赋值的时候。
|
||||||
|
|
||||||
#### Python
|
#### Python
|
||||||
|
|
||||||
@ -159,7 +159,7 @@ Vim 脚本在处理一些类型(style)时有不安全,不直观的行为。举
|
|||||||
|
|
||||||
#### 命令
|
#### 命令
|
||||||
|
|
||||||
**在 plugin/commands.vim 中或 the ftplugin/ 目录中,不用[!]定义**
|
**在 plugin/commands.vim 中或 ftplugin/ 目录中,不用[!]定义**
|
||||||
|
|
||||||
一般命令(general commands)进入 plugin/commands.vim. 文件类型特殊命令(Filetype-specific) 进入 ftplugin/ 。
|
一般命令(general commands)进入 plugin/commands.vim. 文件类型特殊命令(Filetype-specific) 进入 ftplugin/ 。
|
||||||
|
|
||||||
@ -181,7 +181,7 @@ Excluding [!] prevents your plugin from silently clobbering existing commands. C
|
|||||||
|
|
||||||
所有的按键映射都应当在 plugin/mappings.vim 中被定义。
|
所有的按键映射都应当在 plugin/mappings.vim 中被定义。
|
||||||
|
|
||||||
练习映射(参看:help using-<Plugin>)应当在 plugin/plugs.vim 中被定义。
|
练习映射(参看`:help using-<Plugin>`)应当在 plugin/plugs.vim 中被定义。
|
||||||
|
|
||||||
**一直使用 noremap family 命令**
|
**一直使用 noremap family 命令**
|
||||||
|
|
||||||
@ -195,7 +195,7 @@ Excluding [!] prevents your plugin from silently clobbering existing commands. C
|
|||||||
|
|
||||||
**在本地更改设置**
|
**在本地更改设置**
|
||||||
|
|
||||||
用 :setlocal 和 &l: 替代 :set 和 & 除非你有明确的原因不去使用它们。
|
用 `:setlocal` 和 &l: 替代 `:set` 和 & 除非你有明确的原因不去使用它们。
|
||||||
|
|
||||||
### 风格
|
### 风格
|
||||||
|
|
||||||
@ -203,10 +203,10 @@ Excluding [!] prevents your plugin from silently clobbering existing commands. C
|
|||||||
|
|
||||||
#### 空白行
|
#### 空白行
|
||||||
|
|
||||||
**类似python**
|
**类似 Python**
|
||||||
|
|
||||||
- 缩进使用两个空格
|
- 缩进使用两个空格
|
||||||
- 不要使用tabs
|
- 不要使用 Tabs
|
||||||
- 在操作符(operators)前后使用空格
|
- 在操作符(operators)前后使用空格
|
||||||
|
|
||||||
不要以参数列表(arguments)的形式来使用命令。
|
不要以参数列表(arguments)的形式来使用命令。
|
||||||
@ -218,7 +218,7 @@ command -range=% MyCommand
|
|||||||
|
|
||||||
你无需用自己的方法去清除它。
|
你无需用自己的方法去清除它。
|
||||||
|
|
||||||
准备获取用户输入的命令映射中允许留空白字符,例如 "noremap <leader>gf :grep -f "
|
准备获取用户输入的命令映射中允许留空白字符,例如 `noremap <leader>gf :grep -f`
|
||||||
|
|
||||||
- 每行限制 80 个字符的宽度
|
- 每行限制 80 个字符的宽度
|
||||||
- 缩进保持 4 个空格
|
- 缩进保持 4 个空格
|
||||||
@ -242,7 +242,7 @@ command -range=% MyCommand
|
|||||||
- \ some#function()
|
- \ some#function()
|
||||||
```
|
```
|
||||||
|
|
||||||
- 反斜杠后添加一个空格代表续行。
|
- 反斜杠后添加一个空格代表续行
|
||||||
|
|
||||||
如果需要连续使用多行命令,可以使用管道符来代替空格,就像下面这样:
|
如果需要连续使用多行命令,可以使用管道符来代替空格,就像下面这样:
|
||||||
|
|
||||||
@ -255,7 +255,7 @@ autocommand BufEnter <buffer>
|
|||||||
\|endif
|
\|endif
|
||||||
```
|
```
|
||||||
|
|
||||||
- 你应该尽量避免使用多行命令,可以用函数调用来替代它。
|
- 你应该尽量避免使用多行命令,可以用函数调用来替代它
|
||||||
|
|
||||||
#### 命名
|
#### 命名
|
||||||
|
|
||||||
@ -265,7 +265,7 @@ autocommand BufEnter <buffer>
|
|||||||
- plugin-names-like-this
|
- plugin-names-like-this
|
||||||
保持简单易于理解
|
保持简单易于理解
|
||||||
- FunctionNamesLikeThis
|
- FunctionNamesLikeThis
|
||||||
- 本地脚本函数的前缀为s:
|
- 本地脚本函数的前缀为`s:`
|
||||||
- 自动运行函数(autoload functions)可以没有范围前缀。
|
- 自动运行函数(autoload functions)可以没有范围前缀。
|
||||||
- 不要编写(creat)全局函数。用自动运行函数(autoloaded functions)来替代全局函数。
|
- 不要编写(creat)全局函数。用自动运行函数(autoloaded functions)来替代全局函数。
|
||||||
- CommandNamesLikeThis
|
- CommandNamesLikeThis
|
||||||
@ -274,19 +274,19 @@ autocommand BufEnter <buffer>
|
|||||||
Augroup names count as variables for naming purposes.
|
Augroup names count as variables for naming purposes.
|
||||||
参数组(augroup)名字计数作为变量的命名方向。
|
参数组(augroup)名字计数作为变量的命名方向。
|
||||||
- 所有的变量据需要加上它们的范围前缀。
|
- 所有的变量据需要加上它们的范围前缀。
|
||||||
- 全局变量的前缀为 g:
|
- 全局变量的前缀为`g:`
|
||||||
- 本地脚本变量的前缀为 s:
|
- 本地脚本变量的前缀为`s:`
|
||||||
- 函数的参数前缀为 a:
|
- 函数的参数前缀为`a:`
|
||||||
- 本地函数的变量前缀为 l:
|
- 本地函数的变量前缀为`l:`
|
||||||
- Vim 预定义(Vim-predefinded)变量前缀为 v:
|
- Vim 预定义(Vim-predefinded)变量前缀为`v:`
|
||||||
- 本地缓冲区(Buffer-local)变量的前缀为 b:
|
- 本地缓冲区(Buffer-local)变量的前缀为`b:`
|
||||||
- g:, s:, 和 a: 前缀必须使用。
|
- `g:`, `s:`, 和 `a:` 前缀必须使用
|
||||||
- b: 当你想要改变本地缓冲区(buffer-local)的变量的语义时前缀为 b:
|
- `b:` 当你想要改变本地缓冲区(buffer-local)的变量的语义时前缀为 `b:`
|
||||||
- l: and v: should be used for consistency, future proofing, and to avoid subtle bugs. They are not strictly required. Add them in new code but don’t go out of your way to add them elsewhere.
|
- `l:` and v: should be used for consistency, future proofing, and to avoid subtle bugs. They are not strictly required. Add them in new code but don’t go out of your way to add them elsewhere.
|
||||||
|
|
||||||
## markdown 代码规范
|
## markdown 代码规范
|
||||||
|
|
||||||
## 感谢:
|
## 感谢:
|
||||||
|
|
||||||
- link: <https://google.github.io/styleguide/vimscriptguide.xml>
|
- link: <https://google.github.io/styleguide/vimscriptguide.xml>
|
||||||
- link: <https://google.github.io/styleguide/vimscriptfull.xml>
|
- link: <https://google.github.io/styleguide/vimscriptfull.xml>
|
||||||
|
@ -45,7 +45,7 @@ SpaceVim 是每个志愿者的努力的结晶,我们鼓励你参与进来,Sp
|
|||||||
|
|
||||||
## 寻求帮助
|
## 寻求帮助
|
||||||
|
|
||||||
在你建立 issue 之前,先确认你已经浏览过下面的 faq 以及 SpaceVim 文档。
|
在你建立 issue 之前,先确认你已经浏览过下面的 FAQ 以及 SpaceVim 文档。
|
||||||
|
|
||||||
- <kbd>:h SpaceVim-faq</kbd>: 一些常见问题及解决方法
|
- <kbd>:h SpaceVim-faq</kbd>: 一些常见问题及解决方法
|
||||||
- [SpaceVim documentation](https://spacevim.org/cn/documentation): SpaceVim 的官方文档
|
- [SpaceVim documentation](https://spacevim.org/cn/documentation): SpaceVim 的官方文档
|
||||||
@ -61,7 +61,7 @@ SpaceVim 是每个志愿者的努力的结晶,我们鼓励你参与进来,Sp
|
|||||||
|
|
||||||
- 按照下面的问题格式,建立清晰的问题标题
|
- 按照下面的问题格式,建立清晰的问题标题
|
||||||
|
|
||||||
- 包括 bug 出现的细节,一步一步重现 bug 出现的操作
|
- 包括 Bug 出现的细节,一步一步重现 Bug 出现的操作
|
||||||
|
|
||||||
## 贡献代码
|
## 贡献代码
|
||||||
|
|
||||||
@ -137,7 +137,7 @@ Those PRs are merged and explicitly not fast-forwarded.
|
|||||||
|
|
||||||
|
|
||||||
- 用现在时和祈使句:例如"Fix bug",而不是"fixed bug" 或者"fixes bug"。
|
- 用现在时和祈使句:例如"Fix bug",而不是"fixed bug" 或者"fixes bug"。
|
||||||
- 以大写字母开头,短摘要开头(72个字符或者更少),以空行结尾。
|
- 以大写字母开头,短摘要开头(72 个字符或者更少),以空行结尾。
|
||||||
- 如果需要的话,可以用每行 72 个字符的格式添加一个或多个详细的段落。
|
- 如果需要的话,可以用每行 72 个字符的格式添加一个或多个详细的段落。
|
||||||
- 每个独立的段落以空行结尾。
|
- 每个独立的段落以空行结尾。
|
||||||
|
|
||||||
@ -198,7 +198,7 @@ You should replace FILENAME by the name of the file (e.g. foo.vim) and NAME by t
|
|||||||
|
|
||||||
把文件头中的默认作者名字(Shidong Wang)改为你自己的名字。
|
把文件头中的默认作者名字(Shidong Wang)改为你自己的名字。
|
||||||
|
|
||||||
下面是一个创建一个名字为`foo`的新的 layer 的实例
|
下面是一个创建一个名字为`foo`的新 layer 的实例
|
||||||
|
|
||||||
1. fork SpaceVim repo
|
1. fork SpaceVim repo
|
||||||
2. add a layer file `autoload/SpaceVim/layers/foo.vim` for `foo` layer.
|
2. add a layer file `autoload/SpaceVim/layers/foo.vim` for `foo` layer.
|
||||||
|
@ -121,13 +121,13 @@ lang: cn
|
|||||||
|
|
||||||
## 显著特性
|
## 显著特性
|
||||||
|
|
||||||
- **详细的文档:** 在 SpaceVim 中通过`:h SpaceVim`来访问 SpaceVim 帮助文档。
|
- **详细的文档:** 在 SpaceVim 中通过`:h SpaceVim`来访问 SpaceVim 帮助文档。
|
||||||
- **优雅简洁的界面:** 你将会喜欢这样的优雅而实用的界面。
|
- **优雅简洁的界面:** 你将会喜欢这样的优雅而实用的界面。
|
||||||
- **确保手指不离开主键盘区域:** 使用 Space 作为前缀键,合理组织快捷键,确保手指不离开主键盘区域。
|
- **确保手指不离开主键盘区域:** 使用 Space 作为前缀键,合理组织快捷键,确保手指不离开主键盘区域。
|
||||||
- **快捷键辅助系统:** SpaceVim 所有快捷键无需记忆,当输入出现停顿,会实时提示可用按键及其功能。
|
- **快捷键辅助系统:** SpaceVim 所有快捷键无需记忆,当输入出现停顿,会实时提示可用按键及其功能。
|
||||||
- **更快的启动时间:** 得益于 dein.vim, SpaceVim 中 90% 的插件都是按需载入的。
|
- **更快的启动时间:** 得益于 dein.vim, SpaceVim 中 90% 的插件都是按需载入的。
|
||||||
- **更少的肌肉损伤:** 频繁使用空格键,取代 `ctrl`,`shift` 等按键,大大减少了手指的肌肉损伤。
|
- **更少的肌肉损伤:** 频繁使用空格键,取代 `ctrl`,`shift` 等按键,大大减少了手指的肌肉损伤。
|
||||||
- **更易扩展:** 依照一些[约定](http://spacevim.org/cn/development/),很容易将现有的插件集成到 SpaceVim 中来。
|
- **更易扩展:** 依照一些[约定](http://spacevim.org/cn/development/),很容易将现有的插件集成到 SpaceVim 中来。
|
||||||
- **完美支持 Neovim:** 依赖于 Neovim 的 romote 插件以及异步 API,SpaceVim 运行在 Neovim 下将有更加完美的体验。
|
- **完美支持 Neovim:** 依赖于 Neovim 的 romote 插件以及异步 API,SpaceVim 运行在 Neovim 下将有更加完美的体验。
|
||||||
|
|
||||||
## 运行截图
|
## 运行截图
|
||||||
@ -174,7 +174,7 @@ Neovim 运行在 iTerm2 上,采用 SpaceVim,配色为:_base16-solarized-da
|
|||||||
|
|
||||||
**通过 git 进行更新**
|
**通过 git 进行更新**
|
||||||
|
|
||||||
可通过在 SpaceVim 目录中手动执行 `git pull`,SpaceVim 在 Windows 下默认目录为 `~/vimfilers`, 但在 Linux 下则可使用如下命令:
|
可通过在 SpaceVim 目录中手动执行 `git pull`,SpaceVim 在 Windows 下的默认目录为 `~/vimfilers`, 但在 Linux 下则可使用如下命令:
|
||||||
`git -C ~/.SpaceVim pull`
|
`git -C ~/.SpaceVim pull`
|
||||||
|
|
||||||
### 更新插件
|
### 更新插件
|
||||||
@ -306,7 +306,7 @@ SpaceVim 的[模块首页](../layers/)。
|
|||||||
比如,调试内置语法检查插件 neomake.vim
|
比如,调试内置语法检查插件 neomake.vim
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[option]
|
[options]
|
||||||
disabled_plugins = ["neomake.vim"]
|
disabled_plugins = ["neomake.vim"]
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -449,21 +449,21 @@ SpaceVim 在终端下默认使用了真色,因此使用之前需要确认下
|
|||||||
| `SPC t m T` | 显示/隐藏状态栏 |
|
| `SPC t m T` | 显示/隐藏状态栏 |
|
||||||
| `SPC t m v` | 显示/隐藏版本控制信息 |
|
| `SPC t m v` | 显示/隐藏版本控制信息 |
|
||||||
|
|
||||||
**nerd 字体安装:**
|
**nerd 字体安装:**
|
||||||
|
|
||||||
SpaceVim 默认使用 `nerd fonts`,可参阅其安装指南进行安装。
|
SpaceVim 默认使用 `nerd fonts`,可参阅其安装指南进行安装。
|
||||||
|
|
||||||
**语法检查信息:**
|
**语法检查信息:**
|
||||||
|
|
||||||
状态栏中语法检查信息元素如果被启用了,当语法检查结束后,会在状态栏中展示当前语法错误和警告的数量。
|
状态栏中语法检查信息元素如果被启用了,当语法检查结束后,会在状态栏中展示当前语法错误和警告的数量。
|
||||||
|
|
||||||
**搜索结果信息:**
|
**搜索结果信息:**
|
||||||
|
|
||||||
当使用 `/` 或 `?` 进行搜索时,或当按下 `n` 或 `N` 后,搜索结果序号将被展示在状态栏中,类似于 `20/22` 显示搜索结果总数以及当前结果的序号。具体的效果图如下:
|
当使用 `/` 或 `?` 进行搜索时,或当按下 `n` 或 `N` 后,搜索结果序号将被展示在状态栏中,类似于 `20/22` 显示搜索结果总数以及当前结果的序号。具体的效果图如下:
|
||||||
|
|
||||||
![search status](https://cloud.githubusercontent.com/assets/13142418/26313080/578cc68c-3f3c-11e7-9259-a27419d49572.png)
|
![search status](https://cloud.githubusercontent.com/assets/13142418/26313080/578cc68c-3f3c-11e7-9259-a27419d49572.png)
|
||||||
|
|
||||||
**电池状态信息:**
|
**电池状态信息:**
|
||||||
|
|
||||||
_acpi_ 可展示电池电量剩余百分比。
|
_acpi_ 可展示电池电量剩余百分比。
|
||||||
|
|
||||||
@ -477,7 +477,7 @@ _acpi_ 可展示电池电量剩余百分比。
|
|||||||
|
|
||||||
所有的颜色都取决于不同的主题。
|
所有的颜色都取决于不同的主题。
|
||||||
|
|
||||||
**状态栏分割符:**
|
**状态栏分割符:**
|
||||||
|
|
||||||
可通过使用 `statusline_separator` 来定制状态栏分割符,例如使用非常常用的方向箭头作为状态栏分割符:
|
可通过使用 `statusline_separator` 来定制状态栏分割符,例如使用非常常用的方向箭头作为状态栏分割符:
|
||||||
|
|
||||||
@ -495,7 +495,7 @@ SpaceVim 所支持的分割符以及截图如下:
|
|||||||
| `nil` | ![separator-nil](https://cloud.githubusercontent.com/assets/13142418/26249776/645a5a96-3cda-11e7-9655-0aa1f76714f4.png) |
|
| `nil` | ![separator-nil](https://cloud.githubusercontent.com/assets/13142418/26249776/645a5a96-3cda-11e7-9655-0aa1f76714f4.png) |
|
||||||
| `fire` | ![separator-fire](https://cloud.githubusercontent.com/assets/13142418/26274142/434cdd10-3d75-11e7-811b-e44cebfdca58.png) |
|
| `fire` | ![separator-fire](https://cloud.githubusercontent.com/assets/13142418/26274142/434cdd10-3d75-11e7-811b-e44cebfdca58.png) |
|
||||||
|
|
||||||
**SpaceVim 功能模块:**
|
**SpaceVim 功能模块:**
|
||||||
|
|
||||||
功能模块可以通过 `SPC t m m` 快捷键显示或者隐藏。默认使用 Unicode 字符,可通过设置 `statusline_unicode_symbols = false` 来启用 ASCII 字符。(或许在终端中无法设置合适的字体时,可使用这一选项)。
|
功能模块可以通过 `SPC t m m` 快捷键显示或者隐藏。默认使用 Unicode 字符,可通过设置 `statusline_unicode_symbols = false` 来启用 ASCII 字符。(或许在终端中无法设置合适的字体时,可使用这一选项)。
|
||||||
|
|
||||||
@ -821,7 +821,7 @@ call SpaceVim#custom#SPC('nnoremap', ['f', 't'], 'echom "hello world"', 'test cu
|
|||||||
|
|
||||||
**通过 Unite/Denite 浏览快捷键**
|
**通过 Unite/Denite 浏览快捷键**
|
||||||
|
|
||||||
可以通过 `SPC ?` 使用 Unite 将当前快捷键罗列出来。然后可以输入快捷键按键字母或者描述,Unite 可以通过模糊匹配,并展示结果。
|
可以通过 `SPC ?` 使用 Unite 将当前快捷键罗列出来。然后可以输入快捷键按键字母或者描述,Unite 可以模糊匹配并展示结果。
|
||||||
|
|
||||||
![unite-mapping](https://cloud.githubusercontent.com/assets/13142418/25779196/2f370b0a-3345-11e7-977c-a2377d23286e.png)
|
![unite-mapping](https://cloud.githubusercontent.com/assets/13142418/25779196/2f370b0a-3345-11e7-977c-a2377d23286e.png)
|
||||||
|
|
||||||
@ -829,7 +829,7 @@ call SpaceVim#custom#SPC('nnoremap', ['f', 't'], 'echom "hello world"', 'test cu
|
|||||||
|
|
||||||
#### 获取帮助信息
|
#### 获取帮助信息
|
||||||
|
|
||||||
Denite/Unite 是一个强大的信息筛选浏览器,这类似于 emacs 中的 [Helm](https://github.com/emacs-helm/helm)。以下这些快捷键将帮助你快速获取需要的帮助信息:
|
Denite/Unite 是一个强大的信息筛选浏览器,这类似于 Emacs 中的 [Helm](https://github.com/emacs-helm/helm)。以下这些快捷键将帮助你快速获取需要的帮助信息:
|
||||||
|
|
||||||
| 快捷键 | 描述 |
|
| 快捷键 | 描述 |
|
||||||
| ----------- | -------------------------------------------------- |
|
| ----------- | -------------------------------------------------- |
|
||||||
@ -864,7 +864,7 @@ merged = 0
|
|||||||
|
|
||||||
#### 界面元素显示切换
|
#### 界面元素显示切换
|
||||||
|
|
||||||
所有的界面元素切换快捷键都是已 `[SPC] t` 或者 `[SPC] T` 开头的,你可以在快捷键导航中查阅所有快捷键。
|
所有的界面元素切换快捷键都以 `[SPC] t` 或 `[SPC] T` 开头,你可以在快捷键导航中查阅所有快捷键。
|
||||||
|
|
||||||
### 常规操作
|
### 常规操作
|
||||||
|
|
||||||
@ -888,11 +888,11 @@ merged = 0
|
|||||||
|
|
||||||
###### 快速跳到网址 (TODO)
|
###### 快速跳到网址 (TODO)
|
||||||
|
|
||||||
类似于 Firefox 的 vimperator 的 `f` 键的功能。
|
类似于 Firefox 的 Vimperator 的 `f` 键的功能。
|
||||||
|
|
||||||
| 快捷键 | 描述 |
|
| 快捷键 | 描述 |
|
||||||
| ------------------------------- | ----------------- |
|
| ------------------------------- | ----------------- |
|
||||||
| `SPC j u`/(`o` for help buffer) | 快速跳到/打开 url |
|
| `SPC j u`/(`o` for help buffer) | 快速跳到/打开 URL |
|
||||||
|
|
||||||
#### 常用的成对快捷键
|
#### 常用的成对快捷键
|
||||||
|
|
||||||
@ -941,7 +941,7 @@ merged = 0
|
|||||||
| `SPC j k` | 跳至下一行,并且对齐下一行 |
|
| `SPC j k` | 跳至下一行,并且对齐下一行 |
|
||||||
| `SPC j l` | 跳至某一行 (easymotion) |
|
| `SPC j l` | 跳至某一行 (easymotion) |
|
||||||
| `SPC j q` | show the dumb-jump quick look tooltip (TODO) |
|
| `SPC j q` | show the dumb-jump quick look tooltip (TODO) |
|
||||||
| `SPC j u` | 跳至窗口某个 url (TODO) |
|
| `SPC j u` | 跳至窗口某个 URL (TODO) |
|
||||||
| `SPC j v` | 跳至某个 Vim 函数的定义处 (TODO) |
|
| `SPC j v` | 跳至某个 Vim 函数的定义处 (TODO) |
|
||||||
| `SPC j w` | 跳至 Buffer 中某个单词 (easymotion) |
|
| `SPC j w` | 跳至 Buffer 中某个单词 (easymotion) |
|
||||||
|
|
||||||
@ -960,7 +960,7 @@ merged = 0
|
|||||||
|
|
||||||
##### 窗口操作常用快捷键
|
##### 窗口操作常用快捷键
|
||||||
|
|
||||||
每一个窗口,都有一个编号,该编号显示在状态栏的最前端,可通过 `SPC 编号` 进行快速窗口跳转。
|
每一个窗口都有一个编号,该编号显示在状态栏的最前端,可通过 `SPC 编号` 进行快速窗口跳转。
|
||||||
|
|
||||||
| 快捷键 | 描述 |
|
| 快捷键 | 描述 |
|
||||||
| ------- | ---------- |
|
| ------- | ---------- |
|
||||||
@ -978,14 +978,14 @@ merged = 0
|
|||||||
|
|
||||||
| 快捷键 | 描述 |
|
| 快捷键 | 描述 |
|
||||||
| -------------------- | ------------------------------------------------------------------------------ |
|
| -------------------- | ------------------------------------------------------------------------------ |
|
||||||
| `SPC w TAB`/`<Tab>` | 在统一标签内进行窗口切换 |
|
| `SPC w TAB`/`<Tab>` | 在同一标签内进行窗口切换 |
|
||||||
| `SPC w =` | 对齐分离的窗口 |
|
| `SPC w =` | 对齐分离的窗口 |
|
||||||
| `SPC w b` | force the focus back to the minibuffer (TODO) |
|
| `SPC w b` | force the focus back to the minibuffer (TODO) |
|
||||||
| `SPC w c` | 进入阅读模式,浏览当前窗口 (需要 tools 模块) |
|
| `SPC w c` | 进入阅读模式,浏览当前窗口 (需要 tools 模块) |
|
||||||
| `SPC w C` | 选择某一个窗口,并且进入阅读模式 (需要 tools 模块) |
|
| `SPC w C` | 选择某一个窗口,并且进入阅读模式 (需要 tools 模块) |
|
||||||
| `SPC w d` | 删除一个窗口 |
|
| `SPC w d` | 删除一个窗口 |
|
||||||
| `SPC u SPC w d` | delete a window and its current buffer (does not delete the file) (TODO) |
|
| `SPC u SPC w d` | delete a window and its current buffer (does not delete the file) (TODO) |
|
||||||
| `SPC w D` | 选择一个窗口,并且关闭 |
|
| `SPC w D` | 选择一个窗口并关闭 |
|
||||||
| `SPC u SPC w D` | delete another window and its current buffer using vim-choosewin (TODO) |
|
| `SPC u SPC w D` | delete another window and its current buffer using vim-choosewin (TODO) |
|
||||||
| `SPC w t` | toggle window dedication (dedicated window cannot be reused by a mode) (TODO) |
|
| `SPC w t` | toggle window dedication (dedicated window cannot be reused by a mode) (TODO) |
|
||||||
| `SPC w f` | toggle follow mode (TODO) |
|
| `SPC w f` | toggle follow mode (TODO) |
|
||||||
@ -993,17 +993,17 @@ merged = 0
|
|||||||
| `SPC w h` | 移至左边窗口 |
|
| `SPC w h` | 移至左边窗口 |
|
||||||
| `SPC w H` | 将窗口向左移动 |
|
| `SPC w H` | 将窗口向左移动 |
|
||||||
| `SPC w j` | 移至下方窗口 |
|
| `SPC w j` | 移至下方窗口 |
|
||||||
| `SPC w J` | 将窗口移至下方 |
|
| `SPC w J` | 将窗口向下移动 |
|
||||||
| `SPC w k` | 移至上方窗口 |
|
| `SPC w k` | 移至上方窗口 |
|
||||||
| `SPC w K` | 将窗口移至上方 |
|
| `SPC w K` | 将窗口向上移动 |
|
||||||
| `SPC w l` | 移至右方窗口 |
|
| `SPC w l` | 移至右方窗口 |
|
||||||
| `SPC w L` | 将窗口移至右方 |
|
| `SPC w L` | 将窗口向右移动 |
|
||||||
| `SPC w m` | 最大化/最小化窗口(最大化相当于关闭其他窗口)(TODO, now only support maximize) |
|
| `SPC w m` | 最大化/最小化窗口(最大化相当于关闭其他窗口)(TODO, now only support maximize) |
|
||||||
| `SPC w M` | 选择窗口进行替换 |
|
| `SPC w M` | 选择窗口进行替换 |
|
||||||
| `SPC w o` | 按序切换标签页 |
|
| `SPC w o` | 按序切换标签页 |
|
||||||
| `SPC w p m` | open messages buffer in a popup window (TODO) |
|
| `SPC w p m` | open messages buffer in a popup window (TODO) |
|
||||||
| `SPC w p p` | close the current sticky popup window (TODO) |
|
| `SPC w p p` | close the current sticky popup window (TODO) |
|
||||||
| `SPC w r` | 按序切换窗口 |
|
| `SPC w r` | 顺序切换窗口 |
|
||||||
| `SPC w R` | 逆序切换窗口 |
|
| `SPC w R` | 逆序切换窗口 |
|
||||||
| `SPC w s or SPC w -` | 水平分割窗口 |
|
| `SPC w s or SPC w -` | 水平分割窗口 |
|
||||||
| `SPC w S` | 水平分割窗口,并切换至新窗口 |
|
| `SPC w S` | 水平分割窗口,并切换至新窗口 |
|
||||||
@ -1018,7 +1018,7 @@ merged = 0
|
|||||||
|
|
||||||
##### Buffer 操作相关快捷键
|
##### Buffer 操作相关快捷键
|
||||||
|
|
||||||
Buffer 操作相关快捷键都是已 `SPC b` 为前缀的:
|
Buffer 操作相关快捷键都是以 `SPC b` 为前缀的:
|
||||||
|
|
||||||
| 快捷键 | 描述 |
|
| 快捷键 | 描述 |
|
||||||
| --------------- | ------------------------------------------------------------------------------ |
|
| --------------- | ------------------------------------------------------------------------------ |
|
||||||
@ -1256,14 +1256,14 @@ SpaceVim 像下面那样调用不同搜索工具的搜索接口:
|
|||||||
- [ack](https://beyondgrep.com/)
|
- [ack](https://beyondgrep.com/)
|
||||||
- grep
|
- grep
|
||||||
|
|
||||||
SpaceVim 中的搜索命令是以 `SPC s` 为前缀的,前一个键是使用的工具,后一个键是范围。
|
SpaceVim 中的搜索命令以 `SPC s` 为前缀,前一个键是使用的工具,后一个键是范围。
|
||||||
例如 `SPC s a b`将使用 `ag`在当前所有已经打开的缓冲区中进行搜索。
|
例如 `SPC s a b`将使用 `ag`在当前所有已经打开的缓冲区中进行搜索。
|
||||||
|
|
||||||
如果最后一个键(决定范围)是大写字母,那么就会对当前光标下的单词进行搜索。
|
如果最后一个键(决定范围)是大写字母,那么就会对当前光标下的单词进行搜索。
|
||||||
举个例子 `SPC s a b` 将会搜索当前光标下的单词。
|
举个例子 `SPC s a B` 将会搜索当前光标下的单词。
|
||||||
|
|
||||||
如果工具键被省略了,那么会用默认的搜索工具进行搜索。默认的搜索工具对应在 `g:spacevim_search_tools`
|
如果工具键被省略了,那么会用默认的搜索工具进行搜索。默认的搜索工具对应在 `g:spacevim_search_tools`
|
||||||
列表中的第一个工具。列表中的工具默认的顺序为: `rg`, `ag`, `pt`, `ack`, `grep`。
|
列表中的第一个工具。列表中的工具默认的顺序为:`rg`, `ag`, `pt`, `ack`, `grep`。
|
||||||
举个例子:如果 `rg` 和 `ag` 没有在系统中找到,那么 `SPC s b` 会使用 `pt` 进行搜索。
|
举个例子:如果 `rg` 和 `ag` 没有在系统中找到,那么 `SPC s b` 会使用 `pt` 进行搜索。
|
||||||
|
|
||||||
下表是全部的工具键:
|
下表是全部的工具键:
|
||||||
@ -1284,7 +1284,7 @@ SpaceVim 中的搜索命令是以 `SPC s` 为前缀的,前一个键是使用
|
|||||||
| 给定目录的文件 | f |
|
| 给定目录的文件 | f |
|
||||||
| 当前工程 | p |
|
| 当前工程 | p |
|
||||||
|
|
||||||
可以双击按键序列中的第二个键来在当前文件中进行搜索。举个例子: `SPC s a a` 会使用 `ag` 在当前文件中进行搜索。
|
可以双击按键序列中的第二个键来在当前文件中进行搜索。举个例子:`SPC s a a` 会使用 `ag` 在当前文件中进行搜索。
|
||||||
|
|
||||||
注意:
|
注意:
|
||||||
|
|
||||||
@ -1411,7 +1411,7 @@ endfunction
|
|||||||
| `SPC s r p` | rg |
|
| `SPC s r p` | rg |
|
||||||
| `SPC s r P` | rg with default text |
|
| `SPC s r P` | rg with default text |
|
||||||
|
|
||||||
**提示**: 在工程中进行搜索的话,无需提前打开文件。在工程保存目录中使用 `SPC p p` 和 `C-s` ,就比如 `SPC s p`。(TODO)
|
**提示**: 在工程中进行搜索的话,无需提前打开文件。在工程保存目录中使用 `SPC p p` 和 `C-s`,就比如 `SPC s p`。(TODO)
|
||||||
|
|
||||||
##### 后台进行工程搜索
|
##### 后台进行工程搜索
|
||||||
|
|
||||||
@ -1440,9 +1440,9 @@ endfunction
|
|||||||
| `SPC s w g` | Get Google suggestions in Vim. Opens Google results in Browser. |
|
| `SPC s w g` | Get Google suggestions in Vim. Opens Google results in Browser. |
|
||||||
| `SPC s w w` | Get Wikipedia suggestions in Vim. Opens Wikipedia page in Browser.(TODO) |
|
| `SPC s w w` | Get Wikipedia suggestions in Vim. Opens Wikipedia page in Browser.(TODO) |
|
||||||
|
|
||||||
**注意**: 为了在 Vim 中使用谷歌 suggestions,你需要在你的配置文件中加入如下配置:
|
**注意**: 为了在 Vim 中使用谷歌 suggestions,你需要在你的配置文件的[options]片断中加入如下配置:
|
||||||
|
|
||||||
`let g:spacevim_enable_googlesuggest = 1`
|
`enable_googlesuggest = 1`
|
||||||
|
|
||||||
#### 实时代码检索
|
#### 实时代码检索
|
||||||
|
|
||||||
@ -1467,7 +1467,7 @@ FlyGrep 缓冲区的按键绑定:
|
|||||||
|
|
||||||
#### 保持高亮
|
#### 保持高亮
|
||||||
|
|
||||||
SPaceVim 使用 `g:spacevim_search_highlight_persist` 保持当前搜索结果的高亮状态到下一次搜索。
|
SpaceVim 使用 `g:spacevim_search_highlight_persist` 保持当前搜索结果的高亮状态到下一次搜索。
|
||||||
同样可以通过 `SPC s c` 或者运行 ex 命令 `:noh` 来取消搜索结果的高亮表示。
|
同样可以通过 `SPC s c` 或者运行 ex 命令 `:noh` 来取消搜索结果的高亮表示。
|
||||||
|
|
||||||
#### 高亮光标下变量
|
#### 高亮光标下变量
|
||||||
@ -1595,9 +1595,9 @@ In highlight symbol transient state:
|
|||||||
#### 增加或减小数字
|
#### 增加或减小数字
|
||||||
|
|
||||||
| 快捷键 | 描述 |
|
| 快捷键 | 描述 |
|
||||||
| --------- | -------------------------------------------------- |
|
| --------- | --------------------------------------------------- |
|
||||||
| `SPC n +` | 为光标下的数字加 1 并 initiate transient state |
|
| `SPC n +` | 为光标下的数字加 1 并进入 initiate transient state |
|
||||||
| `SPC n -` | 为光标下的数字减 1 并 initiate transient state |
|
| `SPC n -` | 为光标下的数字减 1 并进入 initiate transient state |
|
||||||
|
|
||||||
In transient state:
|
In transient state:
|
||||||
|
|
||||||
@ -1692,7 +1692,7 @@ SpaceVim 默认使用 `utf-8` 码进行编码。下面是 `utf-8` 编码的四
|
|||||||
- encoding (enc) : utf-8
|
- encoding (enc) : utf-8
|
||||||
- termencoding (tenc) : utf-8 (only supported in Vim)
|
- termencoding (tenc) : utf-8 (only supported in Vim)
|
||||||
|
|
||||||
修复混乱的显示: `SPC e a` 是自动选择文件编码的按键映射。在选择好文件编码方式后,你可以运行下面的代码来修复编码:
|
修复混乱的显示:`SPC e a` 是自动选择文件编码的按键映射。在选择好文件编码方式后,你可以运行下面的代码来修复编码:
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
set enc=utf-8
|
set enc=utf-8
|
||||||
@ -1739,7 +1739,7 @@ SpaceVim 通过 [neomake](https://github.com/neomake/neomake) fly 工具来进
|
|||||||
| `SPC e .` | 错误暂态(error transient state) |
|
| `SPC e .` | 错误暂态(error transient state) |
|
||||||
|
|
||||||
下一个/上一个错误导航键和错误暂态(error transinet state) 可用于浏览语法检查器和位置列表缓冲区的错误,
|
下一个/上一个错误导航键和错误暂态(error transinet state) 可用于浏览语法检查器和位置列表缓冲区的错误,
|
||||||
甚至可检查 Vim 位置列表的所有错误。这包括下面的例子: 在已被保存的位置列表缓冲区进行搜索。
|
甚至可检查 Vim 位置列表的所有错误。这包括下面的例子:在已被保存的位置列表缓冲区进行搜索。
|
||||||
默认提示符:
|
默认提示符:
|
||||||
|
|
||||||
| 提示符 | 描述 | 自定义选项 |
|
| 提示符 | 描述 | 自定义选项 |
|
||||||
@ -1771,7 +1771,7 @@ SpaceVim 中的工程通过 vim-projectionisst 和 vim-rooter 进行管理。当
|
|||||||
|
|
||||||
## EditorConfig
|
## EditorConfig
|
||||||
|
|
||||||
SpaceVim has support for [EditorConfig](http://editorconfig.org/), a configuration file to “define and maintain consistent coding styles between different editors and IDEs.”
|
SpaceVim has supported for [EditorConfig](http://editorconfig.org/), a configuration file to "define and maintain consistent coding styles between different editors and IDEs."
|
||||||
|
|
||||||
To customize your editorconfig experience, read the [editorconfig-vim package’s documentation](https://github.com/editorconfig/editorconfig-vim/blob/master/README.md).
|
To customize your editorconfig experience, read the [editorconfig-vim package’s documentation](https://github.com/editorconfig/editorconfig-vim/blob/master/README.md).
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ lang: cn
|
|||||||
# SpaceVim 常见问题解答
|
# SpaceVim 常见问题解答
|
||||||
|
|
||||||
这里根据社区反馈的情况,罗列了一些大家经常会问的问题,如果有需要补充的,欢迎使用
|
这里根据社区反馈的情况,罗列了一些大家经常会问的问题,如果有需要补充的,欢迎使用
|
||||||
使用 SpaceVim 中文社区频道参与讨论,也可以直接编辑本页,提交 PR。
|
使用 SpaceVim 中文社区频道参与讨论,也可以直接编辑本页并提交 PR 。
|
||||||
|
|
||||||
|
|
||||||
<!-- vim-markdown-toc GFM -->
|
<!-- vim-markdown-toc GFM -->
|
||||||
@ -29,20 +29,20 @@ lang: cn
|
|||||||
如果文件中间出现语法错误,导致解析失败。那么该配置会被完全舍弃,而使用 SpaceVim 的
|
如果文件中间出现语法错误,导致解析失败。那么该配置会被完全舍弃,而使用 SpaceVim 的
|
||||||
默认配置,这就大大降低了因配置文件错误导致 SpaceVim 运行出错的可能性。
|
默认配置,这就大大降低了因配置文件错误导致 SpaceVim 运行出错的可能性。
|
||||||
|
|
||||||
在配置文件格式选择时,我们在 json、yaml、xml、toml 这四中文件格式之间也做了比较。
|
在配置文件格式选择时,我们在 json、yaml、xml、Toml 这四中文件格式之间也做了比较。
|
||||||
|
|
||||||
1. yaml 依赖缩进,配置转移时易出错,不予考虑
|
1. yaml 依赖缩进,配置转移时易出错,不予考虑
|
||||||
2. xml 缺少 vim 解析库, 不予考虑
|
2. xml 缺少 Vim 解析库,不予考虑
|
||||||
3. json 时一个比较好的配置信息传输格式,并且 Vim 有一个解析的函数,但是 json 格式
|
3. json 时一个比较好的配置信息传输格式,并且 Vim 有一个解析的函数,但是 json 格式
|
||||||
不支持注释,手写编辑时,阅读性太差,不予考虑。
|
不支持注释,手写编辑时,可读性太差,不予考虑。
|
||||||
|
|
||||||
因此,我们选择了 Toml 作为默认的配置格式,并且解析后,缓存为 json 文件。SpaceVim
|
因此,我们选择了 Toml 作为默认的配置格式,并且解析后缓存为 json 文件。
|
||||||
在启动时直接读取缓存的 json 文件,效率更高。
|
SpaceVim 在启动时直接读取缓存的 json 文件,效率更高。
|
||||||
|
|
||||||
### 为什么 SpaceVim 颜色主题和官网不一致?
|
### 为什么 SpaceVim 颜色主题和官网不一致?
|
||||||
|
|
||||||
因为在 SpaceVim 中,默认情况下是启用了终端真色,因此你需要确保你的终端支持真色。
|
因为在 SpaceVim 中,默认情况下启用了终端真色,因此你需要确保你的终端支持真色。
|
||||||
但是并不是每种终端默认都支持真色的。因此,当你的终端不支持真色时,
|
但是并不是每种终端都支持真色。因此,当你的终端不支持真色时,
|
||||||
你可以在配置文件里面禁用真色支持:
|
你可以在配置文件里面禁用真色支持:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "主页"
|
title: "主页"
|
||||||
description: "SpaceVim 是一个社区驱动的模块化 Vim IDE,以模块的方式组织和管理插件,提高 Vim 环境配置效率。"
|
description: "SpaceVim 是一个社区驱动的模块化的 Vim IDE,以模块的方式组织和管理插件,提高 Vim 环境配置效率。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -13,15 +13,15 @@ lang: cn
|
|||||||
|
|
||||||
![welcome-page](https://user-images.githubusercontent.com/13142418/50423286-5b33a400-088e-11e9-830c-792ce1c7c126.png)
|
![welcome-page](https://user-images.githubusercontent.com/13142418/50423286-5b33a400-088e-11e9-830c-792ce1c7c126.png)
|
||||||
|
|
||||||
# SpaceVim - 模块化 Vim IDE
|
# SpaceVim - 模块化的 Vim IDE
|
||||||
|
|
||||||
SpaceVim 是一个社区驱动的模块化 Vim IDE,以模块的方式组织管理插件以及相关配置,
|
SpaceVim 是一个社区驱动的模块化的 Vim IDE,以模块的方式组织管理插件以及相关配置,
|
||||||
为不同的语言开发量身定制了相关的开发模块,该模块提供代码自动补全,
|
为不同的语言开发量身定制了相关的开发模块,该模块提供代码自动补全,
|
||||||
语法检查、格式化、调试、REPL 等特性。用户仅需载入相关语言的模块即可得到一个开箱即用的Vim-IDE。
|
语法检查、格式化、调试、REPL 等特性。用户仅需载入相关语言的模块即可得到一个开箱即用的 Vim IDE。
|
||||||
|
|
||||||
请查阅[《入门指南》](quick-start-guide/)、[《用户文档》](documentation/)和[《可用模块》](layers/)以获取更多信息。
|
请查阅[《入门指南》](quick-start-guide/)、[《用户文档》](documentation/)和[《可用模块》](layers/)以获取更多信息。
|
||||||
|
|
||||||
## 最新特新
|
## 最新特性
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
{% for post in site.categories.feature_cn offset: 0 limit: 5 %}
|
{% for post in site.categories.feature_cn offset: 0 limit: 5 %}
|
||||||
@ -39,7 +39,7 @@ SpaceVim 是一个社区驱动的模块化 Vim IDE,以模块的方式组织管
|
|||||||
## 参与
|
## 参与
|
||||||
|
|
||||||
常规的项目讨论和问答主要是使用 [Gitter 聊天室](https://gitter.im/SpaceVim/cn) 和 [知乎](https://www.zhihu.com/topic/20168681/hot),
|
常规的项目讨论和问答主要是使用 [Gitter 聊天室](https://gitter.im/SpaceVim/cn) 和 [知乎](https://www.zhihu.com/topic/20168681/hot),
|
||||||
而提交问题和贡献代码主要是在 [Github](https://github.com/SpaceVim/SpaceVim) 上。
|
而提交问题和贡献代码主要是在 [Github](https://github.com/SpaceVim/SpaceVim) 上,
|
||||||
同时,SpaceVim 开通了[码云仓库](https://gitee.com/spacevim/SpaceVim),主要用于中文交流。
|
同时,SpaceVim 开通了[码云仓库](https://gitee.com/spacevim/SpaceVim),主要用于中文交流。
|
||||||
|
|
||||||
## 常见问题
|
## 常见问题
|
||||||
@ -49,7 +49,7 @@ SpaceVim 是一个社区驱动的模块化 Vim IDE,以模块的方式组织管
|
|||||||
当前最新发布的稳定版本是 v1.0.0。可以查看 [时间表](https://github.com/SpaceVim/SpaceVim/milestones) 获取开发进度,
|
当前最新发布的稳定版本是 v1.0.0。可以查看 [时间表](https://github.com/SpaceVim/SpaceVim/milestones) 获取开发进度,
|
||||||
或者阅读 [Roadmap](roadmap/) 获取开发计划。
|
或者阅读 [Roadmap](roadmap/) 获取开发计划。
|
||||||
|
|
||||||
- SpaceVim 是尝试搭建一个 IDE 吗?
|
- SpaceVim 是尝试搭建一个 IDE 吗?
|
||||||
|
|
||||||
是的,通过模块的方式,将各种功能封装成相应的模块,对多种语言提供了语言开发模块,目标是尝试模拟简易的集成开发环境。
|
是的,通过模块的方式,将各种功能封装成相应的模块,对多种语言提供了语言开发模块,目标是尝试模拟简易的集成开发环境。
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: 可用模块
|
title: 可用模块
|
||||||
description: "简述什么是模块,如何启用和禁用 SpaceVim 模块,以及如何设置模块选项。并罗列出 SpaceVim 中所有内置的模块。"
|
description: "简述什么是模块,如何启用和禁用 SpaceVim 模块,以及如何设置模块选项,并罗列出 SpaceVim 中所有内置的模块。"
|
||||||
keywords: layer, layers
|
keywords: layer, layers
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
@ -18,9 +18,9 @@ lang: cn
|
|||||||
|
|
||||||
## 模块简介
|
## 模块简介
|
||||||
|
|
||||||
SpaceVim 是一个社区驱动的 vim 配置集合,通常一个 Vim 的配置集合包含了诸多的
|
SpaceVim 是一个社区驱动的 Vim 配置集合,通常一个 Vim 的配置集合包含了诸多的
|
||||||
Vim 插件以及相关配置。而 SpaceVim 是以模块的方式来组织和管理这些插件以及相关
|
Vim 插件以及相关配置。而 SpaceVim 是以模块的方式来组织和管理这些插件以及相关
|
||||||
的配置。默认情况下,这些模块都是禁用的,用户可以根据自己需要,或者是项目需要
|
的配置。默认情况下,这些模块都是禁用的,用户可以根据自己需要或是项目需要
|
||||||
来载入指定的模块以获取相关功能。
|
来载入指定的模块以获取相关功能。
|
||||||
|
|
||||||
通过模块的方式管理插件和相关配置,为使用者节省了大量的搜索插件和调试插件的时
|
通过模块的方式管理插件和相关配置,为使用者节省了大量的搜索插件和调试插件的时
|
||||||
@ -29,7 +29,7 @@ Vim 插件以及相关配置。而 SpaceVim 是以模块的方式来组织和管
|
|||||||
|
|
||||||
### 启用模块
|
### 启用模块
|
||||||
|
|
||||||
以 `shell` 模块为例,启用该模块,并且设定一些模块选项,指定终端打开位置为
|
以 `shell` 模块为例,启用该模块,并且通过设定一些模块选项,指定终端打开位置为
|
||||||
顶部,高度 30。
|
顶部,高度 30。
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
@ -58,80 +58,81 @@ Vim 插件以及相关配置。而 SpaceVim 是以模块的方式来组织和管
|
|||||||
## 可用模块
|
## 可用模块
|
||||||
|
|
||||||
| 名称 | 描述 |
|
| 名称 | 描述 |
|
||||||
| ---------- | ------------ |
|
| ------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| [VersionControl](VersionControl/) | 这一模块为 SpaceVim 提供了通用的代码版本控制支持,该模块支持 Git、Mercurial、Bazaar、SVN 等等多种后台工具。 |
|
|
||||||
| [autocomplete](autocomplete/) | 这一模块为 SpaceVim 提供了自动补全的框架,包括语法补全等多种补全来源,同时提供了代码块自动完成等特性。 |
|
| [autocomplete](autocomplete/) | 这一模块为 SpaceVim 提供了自动补全的框架,包括语法补全等多种补全来源,同时提供了代码块自动完成等特性。 |
|
||||||
| [chat](chat/) | chat 模块为 SpaceVim 提供了一个聊天框架,目前支持微信聊天和 QQ 聊天,同时支持自定义聊天服务器。 |
|
| [chat](chat/) | 这一模块为 SpaceVim 提供了一个聊天框架,目前支持微信聊天和 QQ 聊天,同时支持自定义聊天服务器。 |
|
||||||
| [checkers](checkers/) | 这一模块为 SpaceVim 提供了代码语法检查的特性,同时提供代码实时检查,并列出语法错误的位置 |
|
| [checkers](checkers/) | 这一模块为 SpaceVim 提供了代码语法检查的特性,同时提供代码实时检查,并列出语法错误的位置。 |
|
||||||
| [chinese](chinese/) | 该模块为中文用户提供了中文的 Vim 帮助文档,同时提供部分插件的中文帮助文档。 |
|
| [chinese](chinese/) | 这一模块为 SpaceVim 的中文用户提供了中文的 Vim 帮助文档,同时提供部分插件的中文帮助文档。 |
|
||||||
| [colorscheme](colorscheme/) | colorscheme 模块为 SpaceVim 提供了一系列的常用颜色主题,默认情况下使用深色 gruvbox 作为默认主题。该模块提供了快速切换主题、随即主题等特性 |
|
| [colorscheme](colorscheme/) | 这一模块为 SpaceVim 提供了一系列的常用颜色主题,默认情况下使用深色 gruvbox 作为默认主题。该模块提供了快速切换主题、随机主题等特性。 |
|
||||||
| [core#banner](core/banner/) | This layer provides many default banner on welcome page. |
|
| [core#banner](core/banner/) | 这一模块为 SpaceVim 提供了许多可以默认显示在首页的 Logo。 |
|
||||||
| [core#statusline](core/statusline/) | 这一模块为 SpaceVim 提供了默认的模式化的状态了支持。 |
|
| [core#statusline](core/statusline/) | 这一模块为 SpaceVim 提供了默认的模式化的状态栏支持。 |
|
||||||
| [core#tabline](core/tabline/) | SpaceVim core#tabline layer provides a better tabline for SpaceVim |
|
| [core#tabline](core/tabline/) | 这一模块为 SpaceVim 提供了一个更好的标签栏。 |
|
||||||
| [core](core/) | core 模块主要包括 SpaceVim 启动及基本操作所必须的插件及配置。 |
|
| [core](core/) | 这一模块为 SpaceVim 提供了启动及基本操作所必须的插件及配置。 |
|
||||||
| [cscope](cscope/) | cscope 模块为 SpaceVim 他提供了一个智能的 cscope 和 pycscope 辅助工具,可以快速调用 cscope 常用命令 |
|
| [cscope](cscope/) | 这一模块为 SpaceVim 提供了一个智能的 cscope 和 pycscope 辅助工具,可以快速调用 cscope 常用命令。 |
|
||||||
| [ctrlp](ctrlp/) | 提供以 ctrlp 为核心的模糊查找机制,支持模糊搜索文件、历史纪录、函数列表等。 |
|
| [ctrlp](ctrlp/) | 这一模块为 SpaceVim 提供以 ctrlp 为核心的模糊查找机制,支持模糊搜索文件、历史记录、函数列表等。 |
|
||||||
| [debug](debug/) | 这一模块为 SpaceVim 提供了 debug 的常用功能,采用 vebugger 作为后台框架,支持多种 debug 工具。 |
|
| [debug](debug/) | 这一模块为 SpaceVim 提供了 debug 的常用功能,采用 vebugger 作为后台框架,支持多种 debug 工具。 |
|
||||||
| [default](default/) | SpaceVim default 模块并不包含插件,但提供了一些更好的默认设置 |
|
| [default](default/) | 这一模块未为 SpaceVim 提供任何插件,但提供了一些更好的默认设置。 |
|
||||||
| [denite](denite/) | 提供以 denite 为核心的异步模糊查找机制,支持模糊搜索文件、历史纪录、函数列表等。 |
|
| [denite](denite/) | 这一模块为 SpaceVim 提供了以 denite 为核心的异步模糊查找机制,支持模糊搜索文件、历史记录、函数列表等。 |
|
||||||
| [edit](edit/) | 该模块提升了 SpaceVim 的文本编辑体验,提供更多种文本对象。 |
|
| [edit](edit/) | 这一模块为 SpaceVim 提供了更好的文本编辑体验,提供更多种文本对象。 |
|
||||||
| [floobits](floobits/) | 该模块为 SpaceVim 提供了 floobits 协作工具的支持,实现多人协作编辑等功能。 |
|
| [floobits](floobits/) | 这一模块为 SpaceVim 提供了 floobits 协作工具的支持,实现多人协作编辑等功能。 |
|
||||||
| [format](format/) | 该模块为 SpaceVim 提供了代码异步格式化的功能,支持高度自定义配置和多种语言。 |
|
| [format](format/) | 这一模块为 SpaceVim 提供了代码异步格式化功能,支持高度自定义配置和多种语言。 |
|
||||||
| [fzf](fzf/) | 提供以 fzf 为核心的异步模糊查找机制,支持模糊搜索文件、历史纪录、函数列表等。 |
|
| [fzf](fzf/) | 这一模块为 SpaceVim 提供了以 fzf 为核心的异步模糊查找机制,支持模糊搜索文件、历史记录、函数列表等。 |
|
||||||
| [git](git/) | 这一模块为 SpaceVim 提供了 git 支持,根据当前 Vim 版本特性,选择 gina 或者 gita 作为默认的后台 git 插件。 |
|
| [git](git/) | 这一模块为 SpaceVim 提供了 Git 支持,根据当前 Vim 版本特性,选择 gina 或者 gita 作为默认的后台 Git 插件。 |
|
||||||
| [github](github/) | 该模块主要提供了 Github 数据管理功能,包括问题列表、动态等管理。 |
|
| [github](github/) | 这一模块为 SpaceVim 提供了 Github 数据管理功能,包括问题列表、动态等管理。 |
|
||||||
| [japanese](japanese/) | 该模块为日文用户提供了日文的 Vim 帮助文档,同时提供部分插件的日文帮助文档。 |
|
| [japanese](japanese/) | 这一模块为 SpaceVim 的日文用户提供了日文的 Vim 帮助文档,同时提供部分插件的日文帮助文档。 |
|
||||||
| [lang#WebAssembly](lang/WebAssembly/) | 这一模块为 WebAssembly 开发提供支持。 |
|
| [lang#agda](lang/agda/) | 这一模块为 SpaceVim 提供了 Agda 的开发支持,主要包括语法高亮及一键运行。 |
|
||||||
| [lang#agda](lang/agda/) | 这一模块为 SpaceVim 提供了 agda 语言开发的支持,主要包括语法高亮及一键运行。 |
|
| [lang#asciidoc](lang/asciidoc/) | 这一模块为 SpaceVim 提供了 AsciiDoc 的编辑支持,包括格式化、自动生成文章目录、代码块等特性。 |
|
||||||
| [lang#asciidoc](lang/asciidoc/) | 这一模块为 asciidoc 编辑提供支持,包括格式化、自动生成文章目录、代码块等特性。 |
|
| [lang#autohotkey](lang/autohotkey/) | 这一模块为 SpaceVim 提供了 Autohotkey 的开发支持,包括语法高亮和自动补全等功能。 |
|
||||||
| [lang#autohotkey](lang/autohotkey/) | 这一个模块为 SpaceVim 提供了 autohotkey 语言的开发支持,包括语法高亮和自动补全等功能。 |
|
| [lang#c](lang/c/) | 这一模块为 SpaceVim 提供了 C/C++/Object-C 的开发支持,包括代码补全、语法检查等特性。 |
|
||||||
| [lang#c](lang/c/) | 这一模块为 c/c++/object-c 的开发提供了支持,包括代码补全、语法检查等特性。 |
|
| [lang#clojure](lang/clojure/) | 这一模块为 SpaceVim 提供了 Clojure 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#clojure](lang/clojure/) | 这一模块为 clojure 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#csharp](lang/csharp/) | 这一模块为 SpaceVim 提供了 CSharp 的开发支持,包括代码高亮、对齐、补全等特性。 |
|
||||||
| [lang#csharp](lang/csharp/) | 该模块为 SpaceVim 提供 csharp 开发支持,包括代码高亮、对齐、补全等特性。 |
|
| [lang#dart](lang/dart/) | 这一模块为 SpaceVim 提供了 Dart 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#dart](lang/dart/) | 这一模块为 dart 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#dockerfile](lang/dockerfile/) | 这一模块为 SpaceVim 提供了 Dockerfile 编辑的部分功能支持,包括语法高亮和自动补全。 |
|
||||||
| [lang#dockerfile](lang/dockerfile/) | 这一模块为 dockerfile 的编辑提供了部分功能支持,包括语法高亮和自动补全。 |
|
| [lang#elixir](lang/elixir/) | 这一模块为 SpaceVim 提供了 Elixir 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#elixir](lang/elixir/) | 这一模块为 elixir 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#elm](lang/elm/) | 这一模块为 SpaceVim 提供了 Elm 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#elm](lang/elm/) | 这一模块为 elm 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#erlang](lang/erlang/) | 这一模块为 SpaceVim 提供了 Erlang 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#erlang](lang/erlang/) | 这一模块为 erlang 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#extra](lang/extra/) | 这一模块为 SpaceVim 提供了一些不常见的语言的语法支持,主要包括语法高亮、对齐等特性。 |
|
||||||
| [lang#extra](lang/extra/) | 该模块主要为一些不常见的语言添加语法支持,主要包括语法高亮、对齐等特性 |
|
| [lang#fsharp](lang/fsharp/) | 这一模块为 SpaceVim 提供了 FSharp 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#fsharp](lang/fsharp/) | 这一模块为 fsharp 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#go](lang/go/) | 这一模块为 SpaceVim 提供了 Go 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#go](lang/go/) | 这一模块为 go 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#haskell](lang/haskell/) | 这一模块为 SpaceVim 提供了 Haskell 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#haskell](lang/haskell/) | 这一模块为 haskell 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#html](lang/html/) | 这一模块为 SpaceVim 提供了 HTML 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#html](lang/html/) | 这一模块为 html 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#java](lang/java/) | 这一模块为 SpaceVim 提供了 Java 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#java](lang/java/) | 这一模块为 java 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#javascript](lang/javascript/) | 这一模块为 SpaceVim 提供了 JavaScript 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#javascript](lang/javascript/) | 这一模块为 javascript 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#julia](lang/julia/) | 这一模块为 SpaceVim 提供了 Julia 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#julia](lang/julia/) | 这一模块为 julia 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#kotlin](lang/kotlin/) | 这一模块为 SpaceVim 提供了 kotlin 的开发支持,包括语法高亮、语言服务器支持。 |
|
||||||
| [lang#kotlin](lang/kotlin/) | 该模块为 SpaceVim 提供了 kotlin 语言开发支持,包括语法高亮、语言服务器支持。 |
|
| [lang#latex](lang/latex/) | 这一模块为 SpaceVim 提供了 LaTeX 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#latex](lang/latex/) | 这一模块为 latex 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#lisp](lang/lisp/) | 这一模块为 SpaceVim 提供了 LISP 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#lisp](lang/lisp/) | 这一模块为 lisp 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#lua](lang/lua/) | 这一模块为 SpaceVim 提供了 Lua 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#lua](lang/lua/) | 这一模块为 lua 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#markdown](lang/markdown/) | 这一模块为 SpaceVim 提供了 Markdown 编辑支持,包括格式化、自动生成文档目录、代码块等特性。 |
|
||||||
| [lang#markdown](lang/markdown/) | 这一模块为 markdown 编辑提供支持,包括格式化、自动生成文章目录、代码块等特性。 |
|
| [lang#nim](lang/nim/) | 这一模块为 SpaceVim 提供了 Nim 的开发支持,包括语法高亮、代码补全、编译运行以及交互式编程等功能。 |
|
||||||
| [lang#nim](lang/nim/) | 该模块为 SpaceVim 提供 nim 开发支持,包括语法高亮、代码补全、编译运行以及交互式编程等功能。 |
|
| [lang#ocaml](lang/ocaml/) | 这一模块为 SpaceVim 提供了 OCaml 开发提供了支持,包括语法高亮、代码补全、以及定义处跳转等功能。 |
|
||||||
| [lang#ocaml](lang/ocaml/) | 这一模块为 ocaml 开发提供了支持,包括语法高亮、代码补全、以及定义处跳转等功能。 |
|
| [lang#perl](lang/perl/) | 这一模块为 SpaceVim 提供了 Perl 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#perl](lang/perl/) | 这一模块为 perl 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#php](lang/php/) | 这一模块为 SpaceVim 提供了 PHP 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#php](lang/php/) | 这一模块为 php 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#plantuml](lang/plantuml/) | 这一模块为 SpaceVim 提供了 PlantUML 的开发支持,包括语法高亮、实时预览等特性。 |
|
||||||
| [lang#plantuml](lang/plantuml/) | 这一模块为 plantuml 开发提供支持,包括语法高亮、实时预览等特性。 |
|
| [lang#puppet](lang/puppet/) | 这一模块为 SpaceVim 提供了 Puppet 的开发支持,包括语法高亮、语言服务器支持。 |
|
||||||
| [lang#puppet](lang/puppet/) | 该模块为 SpaceVim 提供了 puppet 语言开发支持,包括语法高亮、语言服务器支持。 |
|
| [lang#purescript](lang/purescript/) | 这一模块为 SpaceVim 提供了 PureScript 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#purescript](lang/purescript/) | 这一模块为 purescript 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#python](lang/python/) | 这一模块为 SpaceVim 提供了 Python 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#python](lang/python/) | 这一模块为 python 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#ruby](lang/ruby/) | 这一模块为 SpaceVim 提供了 Ruby 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#ruby](lang/ruby/) | 这一模块为 ruby 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#rust](lang/rust/) | 这一模块为 SpaceVim 提供了 Rust 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#rust](lang/rust/) | 这一模块为 rust 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#scala](lang/scala/) | 这一模块为 SpaceVim 提供了 Scala 的开发支持,包括语法高亮,函数列表等特性 |
|
||||||
| [lang#scala](lang/scala/) | 这一模块为 scala 开发提供支持,包括语法高亮,函数列表等特性 |
|
| [lang#scheme](lang/scheme/) | 这一模块为 SpaceVim 提供了 Scheme 语言开发支持,包括语法高亮、语言服务器支持。 |
|
||||||
| [lang#scheme](lang/scheme/) | 该模块为 SpaceVim 提供了 scheme 语言开发支持,包括语法高亮、语言服务器支持。 |
|
| [lang#sh](lang/sh/) | 这一模块为 SpaceVim 提供了 Shell Script 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#sh](lang/sh/) | 这一模块为 shell script 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#swift](lang/swift/) | 这一模块为 SpaceVim 提供了 Swift 的开发支持,包括语法高亮、语法检查等特性。 |
|
||||||
| [lang#swift](lang/swift/) | 该模块主要为 SpaceVim 提供了 swift 开发支持,包括语法高亮、语法检查等特性。 |
|
| [lang#typescript](lang/typescript/) | 这一模块为 SpaceVim 提供了 Typescript 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#typescript](lang/typescript/) | 这一模块为 typescript 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#vim](lang/vim/) | 这一模块为 SpaceVim 提供了 Vimscript 的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#vim](lang/vim/) | 这一模块为 vim script 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#vue](lang/vue/) | 这一模块为 SpaceVim 提供了 Vue 的的开发支持,包括代码补全、语法检查、代码格式化等特性。 |
|
||||||
| [lang#vue](lang/vue/) | 这一模块为 vue 开发提供支持,包括代码补全、语法检查、代码格式化等特性。 |
|
| [lang#WebAssembly](lang/WebAssembly/) | 这一模块为 SpaceVim 提供了 WebAssembly 的开发支持。 |
|
||||||
| [lsp](language-server-protocol/) | lsp 模块为 SpaceVim 提供 language server protocol 的支持,提供更多语言相关服务 |
|
| [leaderf](leaderf/) | 这一模块为 SpaceVim 提供了以 leaderf 为核心的异步模糊查找机制,支持模糊搜索文件、历史记录、函数列表等。 |
|
||||||
| [leaderf](leaderf/) | 提供以 leaderf 为核心的异步模糊查找机制,支持模糊搜索文件、历史纪录、函数列表等。 |
|
| [lsp](language-server-protocol/) | 这一模块为 SpaceVim 提供了 language server protocol 的支持,提供更多语言相关服务。 |
|
||||||
| [shell](shell/) | 这一模块为 SpaceVim 提供了终端集成特性,优化内置终端的使用体验 |
|
| [shell](shell/) | 这一模块为 SpaceVim 提供了终端集成特性,优化内置终端的使用体验。 |
|
||||||
| [sudo](sudo/) | sudo 提供了在 SpaceVim 中以管理员身份读写文件的功能。 |
|
| [sudo](sudo/) | 这一模块为 SpaceVim 提供了以管理员身份读写文件的功能。 |
|
||||||
| [tags](tags/) | tags 模块提供全局的 tags 索引管理,提供快速检索定义和引用的功能。 |
|
| [tags](tags/) | 这一模块为 SpaceVim 提供了全局的 tags 索引管理,提供快速检索定义和引用的功能。 |
|
||||||
| [tmux](tmux/) | 该模块主要提供了一些在 Vim 内操作 tmux 的功能,使得在 tmux 窗口之间跳转更加便捷。 |
|
| [tmux](tmux/) | 这一模块为 SpaceVim 提供了一些在 Vim 内操作 tmux 的功能,使得在 tmux 窗口之间跳转更加便捷。 |
|
||||||
| [tools#dash](tools/dash/) | 该模块提供对 Dash 支持,可快速查找光标位置的单词 |
|
| [tools#dash](tools/dash/) | 这一模块为 SpaceVim 提供了 Dash 支持,可快速查找光标位置的单词。 |
|
||||||
| [tools](tools/) | 集成多种常用工具,包括日历、计算器、等等多种工具类插件,该模块针对 vim8 以及 neovim 提供了更好的插件选择。 |
|
| [tools](tools/) | 这一模块为 SpaceVim 提供了多种常用工具,包括日历、计算器等多种工具类插件,并针对 Vim8 以及 Neovim 提供了更好的插件选择。 |
|
||||||
| [ui](ui/) | SpaceVim ui 模块提供了一个 IDE-like 的界面,包括状态栏、文件树、语法数等等特性。 |
|
| [ui](ui/) | 这一模块为 SpaceVim 提供了 IDE-like 的界面,包括状态栏、文件树、语法树等等特性。 |
|
||||||
|
| [VersionControl](VersionControl/) | 这一模块为 SpaceVim 提供了通用的代码版本控制支持,该模块支持 Git、Mercurial、Bazaar、SVN 等等多种后台工具。 |
|
||||||
|
|
||||||
|
|
||||||
<!-- SpaceVim layer cn list end -->
|
<!-- SpaceVim layer cn list end -->
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim chat 模块"
|
title: "SpaceVim chat 模块"
|
||||||
description: "chat 模块为 SpaceVim 提供了一个聊天框架,目前支持微信聊天和 QQ 聊天,同时支持自定义聊天服务器。"
|
description: "这一模块为 SpaceVim 提供了一个聊天框架,目前支持微信聊天和 QQ 聊天,同时支持自定义聊天服务器。"
|
||||||
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
# [可用模块](../) >> chat
|
# [可用模块](../) >> chat
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim checkers 模块"
|
title: "SpaceVim checkers 模块"
|
||||||
description: "这一模块为 SpaceVim 提供了代码语法检查的特性,同时提供代码实时检查,并列出语法错误的位置"
|
description: "这一模块为 SpaceVim 提供了代码语法检查的特性,同时提供代码实时检查,并列出语法错误的位置。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim chinese 模块"
|
title: "SpaceVim chinese 模块"
|
||||||
description: "该模块为中文用户提供了中文的 Vim 帮助文档,同时为部分插件提供了中文帮助文档。"
|
description: "这一模块为 SpaceVim 的中文用户提供了中文的 Vim 帮助文档,同时提供部分插件的中文帮助文档。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
title: "SpaceVim colorscheme 模块"
|
title: "SpaceVim colorscheme 模块"
|
||||||
description: "colorscheme 模块为 SpaceVim 提供了一系列的常用颜色主题,默认情况下使用深色 gruvbox 作为默认主题。该模块提供了快速切换主题、随即主题等特性"
|
description: "这一模块为 SpaceVim 提供了一系列的常用颜色主题,默认情况下使用深色 gruvbox 作为默认主题。该模块提供了快速切换主题、随机主题等特性。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim core 模块"
|
title: "SpaceVim core 模块"
|
||||||
description: "core 模块主要包括 SpaceVim 启动及基本操作所必须的插件及配置。"
|
description: "这一模块为 SpaceVim 提供了启动及基本操作所必须的插件及配置。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim core#banner 模块"
|
title: "SpaceVim core#banner 模块"
|
||||||
description: "This layer provides many default banner on welcome page."
|
description: "这一模块为 SpaceVim 提供了许多显示在启动界面的 Logo。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -15,11 +15,11 @@ lang: cn
|
|||||||
|
|
||||||
## 模块简介
|
## 模块简介
|
||||||
|
|
||||||
这一模块主要是为 SpaceVim 设置一些默认的启动界面的 logo。
|
这一模块主要是为 SpaceVim 设置一些默认的启动界面的 Logo。
|
||||||
|
|
||||||
## 模块选项
|
## 模块选项
|
||||||
|
|
||||||
- frequece for change the banner: daily, weekly, or other.
|
- 修改 banner 切换的频率:daily, weekly, or other.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -29,5 +29,7 @@ lang: cn
|
|||||||
|
|
||||||
## 相关选项
|
## 相关选项
|
||||||
|
|
||||||
在这里,将列出一些跟状态了相关的 SpaceVim 相关选项,这些选项并非模块选项,需加以区分:
|
在这里,将列出一些跟状态栏相关的 SpaceVim 相关选项,这些选项并非模块选项,需加以区分:
|
||||||
|
|
||||||
|
TODO
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim core#tabline 模块"
|
title: "SpaceVim core#tabline 模块"
|
||||||
description: "SpaceVim core#tabline layer provides a better tabline for SpaceVim"
|
description: "这一模块为 SpaceVim 提供了更好的标签栏。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -22,10 +22,10 @@ lang: cn
|
|||||||
|
|
||||||
## 相关选项
|
## 相关选项
|
||||||
|
|
||||||
以下均为 SpaceVim 选项,不同于模块选项,需要写在 `[options]` 下面:
|
以下均为 SpaceVim 选项,不同于模块选项,这些选项需要写在 `[options]` 下面:
|
||||||
|
|
||||||
- `enable_tabline_filetype_icon`:展示或者隐藏标签栏上的文件类型图标,需要安装 nerd 字体。默认开启的,
|
- `enable_tabline_filetype_icon`:展示或者隐藏标签栏上的文件类型图标,需要安装 nerd 字体。默认开启的,
|
||||||
若需要禁用,可将其值设为 `false`
|
若需要禁用,可将其值设为 `false`。
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[options]
|
[options]
|
||||||
@ -34,4 +34,4 @@ lang: cn
|
|||||||
|
|
||||||
## 快捷键
|
## 快捷键
|
||||||
|
|
||||||
所有的标签栏相关的快捷键可以在[《使用文档》](../../../documentation/#标签栏)中查询到。
|
所有与标签栏相关的快捷键可以在[《使用文档》](../../../documentation/#标签栏)中查询到。
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim cscope 模块"
|
title: "SpaceVim cscope 模块"
|
||||||
description: "cscope 模块为 SpaceVim 他提供了一个智能的 cscope 和 pycscope 辅助工具,可以快速调用 cscope 常用命令"
|
description: "这一模块为 SpaceVim 提供了一个智能的 cscope 和 pycscope 辅助工具,可以快速调用 cscope 常用命令。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -25,8 +25,8 @@ lang: cn
|
|||||||
|
|
||||||
## 模块特性
|
## 模块特性
|
||||||
|
|
||||||
- 通过 cscope 为 c 和 c++ 建立索引,并提供查询功能
|
- 通过 cscope 为 C 和 C++ 建立索引,并提供查询功能
|
||||||
- 通过 Pycscope 为 python 建立索引,并提供查询功能
|
- 通过 Pycscope 为 Python 建立索引,并提供查询功能
|
||||||
|
|
||||||
## 安装依赖及启用模块
|
## 安装依赖及启用模块
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim ctrlp 模块"
|
title: "SpaceVim ctrlp 模块"
|
||||||
description: "提供以 ctrlp 为核心的模糊查找机制,支持模糊搜索文件、历史纪录、函数列表等。"
|
description: "这一模块为 SpaceVim 提供以 ctrlp 为核心的模糊查找机制,支持模糊搜索文件、历史记录、函数列表等。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -17,7 +17,7 @@ lang: cn
|
|||||||
|
|
||||||
## 模块介绍
|
## 模块介绍
|
||||||
|
|
||||||
这一模块在 ctrlp 的基础上做了时当的包装和定制,提供了搜索文件、函数列表、
|
这一模块在 ctrlp 的基础上做了适当的包装和定制,提供了搜索文件、函数列表、
|
||||||
命令历史等等特性。
|
命令历史等等特性。
|
||||||
|
|
||||||
## 启用模块
|
## 启用模块
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim debug 模块"
|
title: "SpaceVim debug 模块"
|
||||||
description: "这一模块为 SpaceVim 提供了 debug 的常用功能,采用 vebugger 作为后台框架,支持多种 debug 工具。"
|
description: "这一模块为 SpaceVim 提供了 Debug 的常用功能,采用 vebugger 作为后台框架,支持多种 Debug 工具。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -16,8 +16,8 @@ lang: cn
|
|||||||
|
|
||||||
## 模块描述
|
## 模块描述
|
||||||
|
|
||||||
这一模块为 SpaceVim 提供了基本的 debug 框架,高度定制
|
这一模块为 SpaceVim 提供了基本的 Debug 框架,高度定制
|
||||||
[vim-vebugger](https://github.com/idanarye/vim-vebugger) 插件,支持多种 debug
|
[vim-vebugger](https://github.com/idanarye/vim-vebugger) 插件,支持多种 Debug
|
||||||
工具。
|
工具。
|
||||||
|
|
||||||
## 启用模块
|
## 启用模块
|
||||||
@ -32,7 +32,7 @@ SpaceVim 默认未载入该模块,如需载入模块,可以在配置文件
|
|||||||
## 快捷键
|
## 快捷键
|
||||||
|
|
||||||
| 按键 | 描述 |
|
| 按键 | 描述 |
|
||||||
| ----------- | ------------------------- |
|
| ----------- | ---------------------- |
|
||||||
| `SPC d l` | 启动 debugger |
|
| `SPC d l` | 启动 debugger |
|
||||||
| `SPC d c` | 继续下一步 |
|
| `SPC d c` | 继续下一步 |
|
||||||
| `SPC d b` | 添加/去除当前行断点 |
|
| `SPC d b` | 添加/去除当前行断点 |
|
||||||
@ -42,11 +42,11 @@ SpaceVim 默认未载入该模块,如需载入模块,可以在配置文件
|
|||||||
| `SPC d O` | 运行至当前方法结束 |
|
| `SPC d O` | 运行至当前方法结束 |
|
||||||
| `SPC d e s` | 打印并求值选中的文本 |
|
| `SPC d e s` | 打印并求值选中的文本 |
|
||||||
| `SPC d e e` | 打印并求值光标所在变量 |
|
| `SPC d e e` | 打印并求值光标所在变量 |
|
||||||
| `SPC d e S` | Execute the selected text |
|
| `SPC d e S` | 执行选中的文本 |
|
||||||
| `SPC d k` | 关闭 debugger |
|
| `SPC d k` | 关闭 debugger |
|
||||||
|
|
||||||
**Debug 临时快捷键菜单**
|
**Debug 临时快捷键菜单**
|
||||||
|
|
||||||
debug 的快捷键太长了? 可以使用 `SPC d .` 调出 debug 临时快捷键菜单。
|
Debug 的快捷键太长了?可以使用 `SPC d .` 调出 Debug 临时快捷键菜单。
|
||||||
|
|
||||||
![Debug Transient State](https://user-images.githubusercontent.com/13142418/33996076-b03c05bc-e0a5-11e7-90fd-5f31e2703d7e.png)
|
![Debug Transient State](https://user-images.githubusercontent.com/13142418/33996076-b03c05bc-e0a5-11e7-90fd-5f31e2703d7e.png)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim default 模块"
|
title: "SpaceVim default 模块"
|
||||||
description: "SpaceVim default 模块并不包含插件,但提供了一些更好的默认设置"
|
description: "这一模块未为 SpaceVim 提供任何插件,但提供了一些更好的默认设置。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -16,7 +16,7 @@ lang: cn
|
|||||||
|
|
||||||
## 模块描述
|
## 模块描述
|
||||||
|
|
||||||
这一模块主要优化了一些 Vim 设置,包含了一些默认的设置选项,和快捷键。
|
这一模块主要优化了一些 Vim 设置,包含了一些默认的设置选项和快捷键。
|
||||||
|
|
||||||
## 启用模块
|
## 启用模块
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim denite 模块"
|
title: "SpaceVim denite 模块"
|
||||||
description: "提供以 denite 为核心的异步模糊查找机制,支持模糊搜索文件、历史纪录、函数列表等。"
|
description: "这一模块为 SpaceVim 提供了以 denite 为核心的异步模糊查找机制,支持模糊搜索文件、历史记录、函数列表等。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -16,9 +16,7 @@ lang: cn
|
|||||||
|
|
||||||
## 模块描述
|
## 模块描述
|
||||||
|
|
||||||
提供以 denite 为核心的异步模糊查找机制,支持模糊搜索文件、历史纪录、函数列表等。这一模块需要 Vim
|
提供以 denite 为核心的异步模糊查找机制,支持模糊搜索文件、历史纪录、函数列表等。这一模块需要 Vim/Neovim 支持 `+python3`。
|
||||||
或者 Neovim 支持 `+python3`。
|
|
||||||
|
|
||||||
## 启用模块
|
## 启用模块
|
||||||
|
|
||||||
denite 模块默认并为启用,如果需要启用该模块,需要在配置文件里面加入:
|
denite 模块默认并为启用,如果需要启用该模块,需要在配置文件里面加入:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim edit 模块"
|
title: "SpaceVim edit 模块"
|
||||||
description: "该模块提升了 SpaceVim 的文本编辑体验,提供更多种文本对象。"
|
description: "这一模块为 SpaceVim 提供了更好的文本编辑体验,提供更多种文本对象。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -27,6 +27,7 @@ lang: cn
|
|||||||
- 对齐文档内容
|
- 对齐文档内容
|
||||||
- 高亮行为符号
|
- 高亮行为符号
|
||||||
- 自动载入 editorconfig 配置,需要 `+python` 或者 `+python3` 支持
|
- 自动载入 editorconfig 配置,需要 `+python` 或者 `+python3` 支持
|
||||||
|
- 默认已启用
|
||||||
|
|
||||||
## 模块选项
|
## 模块选项
|
||||||
|
|
||||||
@ -34,9 +35,9 @@ lang: cn
|
|||||||
|
|
||||||
## 快捷键
|
## 快捷键
|
||||||
|
|
||||||
快捷键 | 功能描述
|
| 快捷键 | 功能描述 |
|
||||||
--- | ---
|
| ------------------ | ---------------------- |
|
||||||
`SPC x a {分隔符}` | 基于分隔符进行文本对齐
|
| `SPC x a {分隔符}` | 基于分隔符进行文本对齐 |
|
||||||
|
|
||||||
**默认的分隔符:**
|
**默认的分隔符:**
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim floobits 模块"
|
title: "SpaceVim floobits 模块"
|
||||||
description: "该模块为 SpaceVim 提供了 floobits 协作工具的支持,实现多人协作编辑等功能。"
|
description: "这一模块为 SpaceVim 提供了 floobits 协作工具的支持,实现多人协作编辑等功能。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -17,7 +17,7 @@ lang: cn
|
|||||||
|
|
||||||
## 模块简介
|
## 模块简介
|
||||||
|
|
||||||
该模块为 SpaceVim 提供了多人协作工具 floobits 的支持,该模块目前仅支持在 neovim 下正常工作。
|
该模块为 SpaceVim 提供了多人协作工具 floobits 的支持,该模块目前仅支持在 Neovim 下正常工作。
|
||||||
|
|
||||||
|
|
||||||
## 功能特性
|
## 功能特性
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim format 模块"
|
title: "SpaceVim format 模块"
|
||||||
description: "该模块为 SpaceVim 提供了代码异步格式化的功能,支持高度自定义配置和多种语言。"
|
description: "这一模块为 SpaceVim 提供了代码异步格式化功能,支持高度自定义配置和多种语言。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim fzf 模块"
|
title: "SpaceVim fzf 模块"
|
||||||
description: "提供以 fzf 为核心的异步模糊查找机制,支持模糊搜索文件、历史纪录、函数列表等。"
|
description: "这一模块为 SpaceVim 提供了以 fzf 为核心的异步模糊查找机制,支持模糊搜索文件、历史记录、函数列表等。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -16,7 +16,7 @@ lang: cn
|
|||||||
|
|
||||||
## 模块介绍
|
## 模块介绍
|
||||||
|
|
||||||
这一模块在 fzf 的基础上做了时当的包装和定制,提供了搜索文件、函数列表、
|
这一模块在 fzf 的基础上做了适当的包装和定制,提供了搜索文件、函数列表、
|
||||||
命令历史等等特性。
|
命令历史等等特性。
|
||||||
|
|
||||||
## 启用模块
|
## 启用模块
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim git 模块"
|
title: "SpaceVim git 模块"
|
||||||
description: "这一模块为 SpaceVim 提供了 git 支持,根据当前 Vim 版本特性,选择 gina 或者 gita 作为默认的后台 git 插件。"
|
description: "这一模块为 SpaceVim 提供了 Git 支持,根据当前 Vim 版本特性,选择 gina 或者 gita 作为默认的后台 Git 插件。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim github 模块"
|
title: "SpaceVim github 模块"
|
||||||
description: "该模块主要提供了 Github 数据管理功能,包括问题列表、动态等管理。"
|
description: "这一模块为 SpaceVim 提供了 Github 数据管理功能,包括问题列表、动态等管理。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim japanese 模块"
|
title: "SpaceVim japanese 模块"
|
||||||
description: "该模块为日文用户提供了日文的 Vim 帮助文档,同时提供部分插件的日文帮助文档。"
|
description: "这一模块为 SpaceVim 的日文用户提供了日文的 Vim 帮助文档,同时提供部分插件的日文帮助文档。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -29,7 +29,7 @@ lang: cn
|
|||||||
|
|
||||||
## 模块配置
|
## 模块配置
|
||||||
|
|
||||||
加在该模块后,默认的帮助文件语言并为设置为日文,可以通过 SpaceVim 选项
|
加载该模块后,默认的帮助文件语言并未设置为日文,可以通过 SpaceVim 选项
|
||||||
`vim_help_language` 来设置,可将其值设为 `"jp"`。
|
`vim_help_language` 来设置,可将其值设为 `"jp"`。
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim lang#WebAssembly 模块"
|
title: "SpaceVim lang#WebAssembly 模块"
|
||||||
description: "这一模块为 WebAssembly 开发提供支持。"
|
description: "这一模块为 SpaceVim 提供了 WebAssembly 的开发支持。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ lang: cn
|
|||||||
|
|
||||||
## 模块简介
|
## 模块简介
|
||||||
|
|
||||||
`lang#WebAssembly` 模块提供了 WebAssembly 语法高亮,采用 [vim-wasm](https://github.com/rhysd/vim-wasm) 这一插件。
|
这一模块为 SpaceVim 提供了 WebAssembly 的开发支持。采用 [vim-wasm](https://github.com/rhysd/vim-wasm) 这一插件。
|
||||||
|
|
||||||
## 启用模块
|
## 启用模块
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim lang#agda 模块"
|
title: "SpaceVim lang#agda 模块"
|
||||||
description: "这一模块为 SpaceVim 提供了 agda 语言开发的支持,主要包括语法高亮及一键运行。"
|
description: "这一模块为 SpaceVim 提供了 Agda 的开发支持,主要包括语法高亮及一键运行。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim lang#asciidoc layer"
|
title: "SpaceVim lang#asciidoc layer"
|
||||||
description: "这一模块为 asciidoc 编辑提供支持,包括格式化、自动生成文章目录、代码块等特性。"
|
description: "这一模块为 SpaceVim 提供了 AsciiDoc 的编辑支持,包括格式化、自动生成文章目录、代码块等特性。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ lang: cn
|
|||||||
|
|
||||||
## 模块简介
|
## 模块简介
|
||||||
|
|
||||||
该模块为 SpaceVim 提供了 asciidoc 文件夹编辑支持。该模块包括以下插件:
|
这一模块为 SpaceVim 提供了 AsciiDoc 的编辑支持,包括格式化、自动生成文章目录、代码块等特性。该模块包括以下插件:
|
||||||
|
|
||||||
- `wsdjeg/vim-asciidoc`
|
- `wsdjeg/vim-asciidoc`
|
||||||
- `Raimondi/VimRegStyle`
|
- `Raimondi/VimRegStyle`
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim lang#autohotkey 模块"
|
title: "SpaceVim lang#autohotkey 模块"
|
||||||
description: "这一个模块为 SpaceVim 提供了 autohotkey 语言的开发支持,包括语法高亮和自动补全等功能。"
|
description: "这一模块为 SpaceVim 提供了 Autohotkey 的开发支持,包括语法高亮和自动补全等功能。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -16,7 +16,7 @@ lang: cn
|
|||||||
|
|
||||||
## 模块简介
|
## 模块简介
|
||||||
|
|
||||||
这一个模块为 SpaceVim 提供了 autohotkey 语言的开发支持。
|
这一个模块为 SpaceVim 提供了 Autohotkey 语言的开发支持。
|
||||||
|
|
||||||
## 功能特性
|
## 功能特性
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim lang#c 模块"
|
title: "SpaceVim lang#c 模块"
|
||||||
description: "这一模块为 c/c++/object-c 的开发提供了支持,包括代码补全、语法检查等特性。"
|
description: "这一模块为 SpaceVim 提供了 C/C++/Object-C 的开发支持,包括代码补全、语法检查等特性。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -18,7 +18,7 @@ lang: cn
|
|||||||
|
|
||||||
## 模块简介
|
## 模块简介
|
||||||
|
|
||||||
这一模块为 c/c++/object-c 的开发提供了支持,包块代码补全、语法检查、格式化等特性。
|
这一模块为 SpaceVim 提供了 C/C++/Object-C 的开发支持,包括代码补全、语法检查等特性。
|
||||||
|
|
||||||
## 启用模块
|
## 启用模块
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ lang: cn
|
|||||||
|
|
||||||
- `clang_std`(字典)
|
- `clang_std`(字典)
|
||||||
|
|
||||||
该字典存储编辑不同 c 家族文件类型时所使用的标准库。默认值为:
|
该字典存储编辑不同 C 家族文件类型时所使用的标准库。默认值为:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim lang#clojure 模块"
|
title: "SpaceVim lang#clojure 模块"
|
||||||
description: "这一模块为 clojure 开发提供支持,包括代码补全、语法检查、代码格式化等特性。"
|
description: "这一模块为 SpaceVim 提供了 Clojure 的开发支持,包括代码补全、语法检查、代码格式化等特性。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -16,11 +16,10 @@ lang: cn
|
|||||||
|
|
||||||
## 模块简介
|
## 模块简介
|
||||||
|
|
||||||
这一模块为 SpaceVim 提供了 clojure 开发支持,主要包括插件vim-clojure-static 和 vim-fireplace。
|
这一模块为 SpaceVim 提供了 Clojure 开发支持,主要包括插件 vim-clojure-static 和 vim-fireplace。
|
||||||
|
|
||||||
## 功能特性
|
## 功能特性
|
||||||
|
|
||||||
|
|
||||||
- 代码补全
|
- 代码补全
|
||||||
- 文档查询
|
- 文档查询
|
||||||
- 跳转定义处
|
- 跳转定义处
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim lang#csharp 模块"
|
title: "SpaceVim lang#csharp 模块"
|
||||||
description: "该模块为 SpaceVim 提供 csharp 开发支持,包括代码高亮、对齐、补全等特性。"
|
description: "这一模块为 SpaceVim 提供了 CSharp 的开发支持,包括代码高亮、对齐、补全等特性。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -18,7 +18,7 @@ lang: cn
|
|||||||
|
|
||||||
## 模块简介
|
## 模块简介
|
||||||
|
|
||||||
该模块为 SpaceVim 提供 csharp 开发支持,包括代码高亮、对齐、补全等特性。
|
这一模块为 SpaceVim 提供了 CSharp 的开发支持,包括代码高亮、对齐、补全等特性。
|
||||||
|
|
||||||
## 依赖安装及模块启用
|
## 依赖安装及模块启用
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim lang#dart 模块"
|
title: "SpaceVim lang#dart 模块"
|
||||||
description: "这一模块为 dart 开发提供支持,包括代码补全、语法检查、代码格式化等特性。"
|
description: "这一模块为 SpaceVim 提供了 Dart 的开发支持,包括代码补全、语法检查、代码格式化等特性。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -24,7 +24,7 @@ lang: cn
|
|||||||
|
|
||||||
## 模块简介
|
## 模块简介
|
||||||
|
|
||||||
这一模块为 SpaceVim 提供了 dart 开发支持,包括代码补全、语法检查、以及代码格式化等特性。
|
这一模块为 SpaceVim 提供了 Dart 的开发支持,包括代码补全、语法检查、代码格式化等特性。
|
||||||
|
|
||||||
## 功能特性
|
## 功能特性
|
||||||
|
|
||||||
@ -47,11 +47,11 @@ lang: cn
|
|||||||
|
|
||||||
### 语法检查及代码格式化
|
### 语法检查及代码格式化
|
||||||
|
|
||||||
为了在 SpaceVim 中启用 dart 语法检查以及代码格式化,需要安装 [dart sdk](https://github.com/dart-lang/sdk)。
|
为了在 SpaceVim 中启用 Dart 语法检查以及代码格式化,需要安装 [dart sdk](https://github.com/dart-lang/sdk)。
|
||||||
|
|
||||||
### 安装 dart-repl
|
### 安装 dart-repl
|
||||||
|
|
||||||
需要通过 pub 来安装 `dart_repl` ,pub 是 dart sdk 内置的包管理器:
|
需要通过 pub 来安装 `dart_repl`,pub 是 Dart sdk 内置的包管理器:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
pub global activate dart_repl
|
pub global activate dart_repl
|
||||||
@ -66,31 +66,31 @@ pub global activate dart_repl
|
|||||||
将代码传输给 REPL 进程执行:
|
将代码传输给 REPL 进程执行:
|
||||||
|
|
||||||
| 快捷键 | 描述 |
|
| 快捷键 | 描述 |
|
||||||
| ----------- | --------------------------- |
|
| ----------- | ----------------------- |
|
||||||
| `SPC l s b` | 发送整个文件内容至 REPL |
|
| `SPC l s b` | 发送整个文件内容至 REPL |
|
||||||
| `SPC l s l` | 发送当前行内容至 REPL |
|
| `SPC l s l` | 发送当前行内容至 REPL |
|
||||||
| `SPC l s s` | 发送已选中的内容至 REPL |
|
| `SPC l s s` | 发送已选中的内容至 REPL |
|
||||||
|
|
||||||
### 运行当前脚本
|
### 运行当前脚本
|
||||||
|
|
||||||
在编辑 dart 文件是,可通过快捷键 `SPC l r` 快速异步运行当前文件,运行结果会展示在一个独立的执行窗口内。
|
在编辑 Dart 文件时,可通过快捷键 `SPC l r` 快速异步运行当前文件,运行结果会展示在一个独立的执行窗口内。
|
||||||
|
|
||||||
### 代码格式化
|
### 代码格式化
|
||||||
|
|
||||||
| 快捷键 | 描述 |
|
| 快捷键 | 描述 |
|
||||||
| ----------- | --------------------- |
|
| ----------- | -------------- |
|
||||||
| `SPC b f` | 格式化当前文件 |
|
| `SPC b f` | 格式化当前文件 |
|
||||||
|
|
||||||
## 相关截图
|
## 相关截图
|
||||||
|
|
||||||
**代码格式化:**
|
**代码格式化:**
|
||||||
|
|
||||||
![format-dart-file-in-spacevim](https://user-images.githubusercontent.com/13142418/34455939-b094db54-ed4f-11e7-9df0-80cf5de1128d.gif)
|
![format-dart-file-in-spacevim](https://user-images.githubusercontent.com/13142418/34455939-b094db54-ed4f-11e7-9df0-80cf5de1128d.gif)
|
||||||
|
|
||||||
**代码补全:**
|
**代码补全:**
|
||||||
|
|
||||||
![complete-dart-in-spacevim](https://user-images.githubusercontent.com/13142418/34455816-ee77182c-ed4c-11e7-8f63-402849f60405.png)
|
![complete-dart-in-spacevim](https://user-images.githubusercontent.com/13142418/34455816-ee77182c-ed4c-11e7-8f63-402849f60405.png)
|
||||||
|
|
||||||
**异步执行:**
|
**异步执行:**
|
||||||
|
|
||||||
![dart-runner-in-spacevim](https://user-images.githubusercontent.com/13142418/34455403-1f6d4c3e-ed44-11e7-893f-09a6e64e27ed.png)
|
![dart-runner-in-spacevim](https://user-images.githubusercontent.com/13142418/34455403-1f6d4c3e-ed44-11e7-893f-09a6e64e27ed.png)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim lang#dockerfile 模块"
|
title: "SpaceVim lang#dockerfile 模块"
|
||||||
description: "这一模块为 dockerfile 的编辑提供了部分功能支持,包括语法高亮和自动补全。"
|
description: "这一模块为 SpaceVim 提供了 Dockerfile 编辑的部分功能支持,包括语法高亮和自动补全。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -16,7 +16,7 @@ lang: cn
|
|||||||
|
|
||||||
## 模块简介
|
## 模块简介
|
||||||
|
|
||||||
这一模块为 dockerfile 的编辑提供了部分功能支持,包括语法高亮和自动补全。
|
这一模块为 SpaceVim 提供了 Dockerfile 编辑的部分功能支持,包括语法高亮和自动补全。
|
||||||
|
|
||||||
## 功能特性
|
## 功能特性
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ lang: cn
|
|||||||
name = "lang#dockerfile"
|
name = "lang#dockerfile"
|
||||||
```
|
```
|
||||||
|
|
||||||
若需要启用语言服务器支持,需要额外安装 dockerfile 的语言服务器 [dockerfile-language-server-nodejs](https://github.com/rcjsuen/dockerfile-language-server-nodejs)。
|
若需要启用语言服务器支持,需要额外安装 Dockerfile 的语言服务器 [dockerfile-language-server-nodejs](https://github.com/rcjsuen/dockerfile-language-server-nodejs)。
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm install -g dockerfile-language-server-nodejs
|
npm install -g dockerfile-language-server-nodejs
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim lang#elixir 模块"
|
title: "SpaceVim lang#elixir 模块"
|
||||||
description: "这一模块为 elixir 开发提供支持,包括代码补全、语法检查、代码格式化等特性。"
|
description: "这一模块为 SpaceVim 提供了 Elixir 的开发支持,包括代码补全、语法检查、代码格式化等特性。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim lang#elm 模块"
|
title: "SpaceVim lang#elm 模块"
|
||||||
description: "这一模块为 elm 开发提供支持,包括代码补全、语法检查、代码格式化等特性。"
|
description: "这一模块为 SpaceVim 提供了 Elm 的开发支持,包括代码补全、语法检查、代码格式化等特性。"
|
||||||
image: https://user-images.githubusercontent.com/13142418/44625046-7b2f7700-a931-11e8-807e-dba3f73c9e90.png
|
image: https://user-images.githubusercontent.com/13142418/44625046-7b2f7700-a931-11e8-807e-dba3f73c9e90.png
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
@ -22,7 +22,7 @@ lang: cn
|
|||||||
|
|
||||||
## 模块简介
|
## 模块简介
|
||||||
|
|
||||||
这一模块为 SpaceVim 提供了 elm 开发支持,包括代码补全、语法检查、以及代码格式化等特性。
|
这一模块为 SpaceVim 提供了 Elm 开发支持,包括代码补全、语法检查、以及代码格式化等特性。
|
||||||
|
|
||||||
## 功能特性
|
## 功能特性
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ lang: cn
|
|||||||
- 语法检查
|
- 语法检查
|
||||||
- 文档查询
|
- 文档查询
|
||||||
|
|
||||||
同时,SpaceVim 还为 elm 开发提供了交互式编程。
|
同时,SpaceVim 还为 Elm 开发提供了交互式编程。
|
||||||
|
|
||||||
## 依赖安装及启用模块
|
## 依赖安装及启用模块
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim lang#extra 模块"
|
title: "SpaceVim lang#extra 模块"
|
||||||
description: "该模块主要为一些不常见的语言添加语法支持,主要包括语法高亮、对齐等特性"
|
description: "这一模块为 SpaceVim 提供了一些不常见的语言添加语法支持,主要包括语法高亮、对齐等特性。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -28,8 +28,8 @@ lang: cn
|
|||||||
| coffee script | 语法高亮 |
|
| coffee script | 语法高亮 |
|
||||||
| irssi config | 语法高亮 |
|
| irssi config | 语法高亮 |
|
||||||
| vimperator config | 语法高亮 |
|
| vimperator config | 语法高亮 |
|
||||||
| Pug (formerly Jade) | 语法高亮, 代码对齐 |
|
| Pug (formerly Jade) | 语法高亮,代码对齐 |
|
||||||
| mustache | 语法高亮, 括号跳转, 文本对象 |
|
| mustache | 语法高亮,括号跳转,文本对象 |
|
||||||
|
|
||||||
## 启用模块
|
## 启用模块
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim lang#fsharp 模块"
|
title: "SpaceVim lang#fsharp 模块"
|
||||||
description: "这一模块为 fsharp 开发提供支持,包括代码补全、语法检查、代码格式化等特性。"
|
description: "这一模块为 SpaceVim 提供了 FSharp 的开发支持,包括代码补全、语法检查、代码格式化等特性。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -16,7 +16,7 @@ lang: cn
|
|||||||
|
|
||||||
## 模块简介
|
## 模块简介
|
||||||
|
|
||||||
这一模块为在 SpaceVim 中进行 fsharp 开发提供了支持.
|
这一模块为在 SpaceVim 中进行 FSharp 开发提供了支持.
|
||||||
|
|
||||||
## 功能特性
|
## 功能特性
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim lang#go 模块"
|
title: "SpaceVim lang#go 模块"
|
||||||
description: "这一模块为 go 开发提供支持,包括代码补全、语法检查、代码格式化等特性。"
|
description: "这一模块为 SpaceVim 提供了 Go 的开发支持,包括代码补全、语法检查、代码格式化等特性。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -17,7 +17,7 @@ lang: cn
|
|||||||
|
|
||||||
## 模块简介
|
## 模块简介
|
||||||
|
|
||||||
该模块为 SpaceVim 提供了 golang 开发支持,包括代码补全,格式化,语法检查等特性。同时提供诸多语言专属快捷键。
|
该模块为 SpaceVim 提供了 Golang 开发支持,包括代码补全,格式化,语法检查等特性。同时提供诸多语言专属快捷键。
|
||||||
|
|
||||||
## 启用模块
|
## 启用模块
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ lang: cn
|
|||||||
|
|
||||||
## 快捷键
|
## 快捷键
|
||||||
|
|
||||||
**语言专属快捷键:**
|
**语言专属快捷键:**
|
||||||
|
|
||||||
| 快捷键 | 描述 |
|
| 快捷键 | 描述 |
|
||||||
| --------- | ------------------------- |
|
| --------- | ------------------------- |
|
||||||
@ -63,9 +63,9 @@ lang: cn
|
|||||||
| `SPC l v` | freevars |
|
| `SPC l v` | freevars |
|
||||||
| `SPC l x` | go run |
|
| `SPC l x` | go run |
|
||||||
|
|
||||||
**代码格式化:**
|
**代码格式化:**
|
||||||
|
|
||||||
默认的代码格式化快捷键是 `SPC b f`,该快捷键又 `format` 模块定义,同时也可以通过 `g =` 来对其整个文档。
|
默认的代码格式化快捷键是 `SPC b f`,该快捷键由 `format` 模块定义,同时也可以通过 `g =` 来对其整个文档。
|
||||||
|
|
||||||
为了使得 `format` 模块支持 go 文件,需要确认有可执行命令 [go-fmt](http://golang.org/cmd/gofmt/) 或者 [goimports](https://godoc.org/golang.org/x/tools/cmd/goimports),
|
为了使得 `format` 模块支持 Go 文件,需要确认有可执行命令 [go-fmt](http://golang.org/cmd/gofmt/) 或者 [goimports](https://godoc.org/golang.org/x/tools/cmd/goimports),
|
||||||
通常 `go-fmt` 命令为 go 自带的程序,请确认 go 开发环境是否配置正确。
|
通常 `go-fmt` 命令为 go 自带的程序,请确认 go 开发环境是否配置正确。
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim lang#haskell 模块"
|
title: "SpaceVim lang#haskell 模块"
|
||||||
description: "这一模块为 haskell 开发提供支持,包括代码补全、语法检查、代码格式化等特性。"
|
description: "这一模块为 SpaceVim 提供了 Haskell 的开发支持,包括代码补全、语法检查、代码格式化等特性。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -16,7 +16,7 @@ lang: cn
|
|||||||
|
|
||||||
## 模块简介
|
## 模块简介
|
||||||
|
|
||||||
这一模块为 haskell 开发提供支持,包括代码补全、语法检查、代码格式化等特性。
|
这一模块为 Haskell 开发提供支持,包括代码补全、语法检查、代码格式化等特性。
|
||||||
|
|
||||||
## 启用模块
|
## 启用模块
|
||||||
|
|
||||||
@ -34,4 +34,3 @@ lang: cn
|
|||||||
- 跳转定义处
|
- 跳转定义处
|
||||||
- 查询函数引用
|
- 查询函数引用
|
||||||
- lsp 支持
|
- lsp 支持
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim lang#html 模块"
|
title: "SpaceVim lang#html 模块"
|
||||||
description: "这一模块为 html 开发提供支持,包括代码补全、语法检查、代码格式化等特性。"
|
description: "这一模块为 SpaceVim 提供了 HTML 的开发支持,包括代码补全、语法检查、代码格式化等特性。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim lang#php 模块"
|
title: "SpaceVim lang#php 模块"
|
||||||
description: "这一模块为 php 开发提供支持,包括代码补全、语法检查、代码格式化等特性。"
|
description: "这一模块为 SpaceVim 提供了 PHP 的开发支持,包括代码补全、语法检查、代码格式化等特性。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -17,7 +17,7 @@ lang: cn
|
|||||||
|
|
||||||
## 模块简介
|
## 模块简介
|
||||||
|
|
||||||
这一模块为在 SpaceVim 中进行 php 开发提供了支持,包括代码补全、语法检查、代码格式化、交互式编程以及调试等特性。
|
这一模块为在 SpaceVim 中进行 PHP 开发提供了支持,包括代码补全、语法检查、代码格式化、交互式编程以及调试等特性。
|
||||||
|
|
||||||
## 功能特性
|
## 功能特性
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim lang#plantuml 模块"
|
title: "SpaceVim lang#plantuml 模块"
|
||||||
description: "这一模块为 plantuml 开发提供支持,包括语法高亮、实时预览等特性。"
|
description: "这一模块为 SpaceVim 提供了 PlantUML 的开发支持,包括语法高亮、实时预览等特性。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -16,7 +16,7 @@ lang: cn
|
|||||||
|
|
||||||
## 模块简介
|
## 模块简介
|
||||||
|
|
||||||
这一模块为 SpaceVim 提供了 plantuml 开发支持。
|
这一模块为 SpaceVim 提供了 PlantUML 的开发支持,包括语法高亮、实时预览等特性。
|
||||||
|
|
||||||
## 功能特性
|
## 功能特性
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim lang#puppet 模块"
|
title: "SpaceVim lang#puppet 模块"
|
||||||
description: "该模块为 SpaceVim 提供了 puppet 语言开发支持,包括语法高亮、语言服务器支持。"
|
description: "这一模块为 SpaceVim 提供了 Puppet 的开发支持,包括语法高亮、语言服务器支持。"
|
||||||
image: https://user-images.githubusercontent.com/13142418/46022200-bb426f00-c114-11e8-84bc-d52dc83806c6.png
|
image: https://user-images.githubusercontent.com/13142418/46022200-bb426f00-c114-11e8-84bc-d52dc83806c6.png
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
@ -17,7 +17,7 @@ lang: cn
|
|||||||
|
|
||||||
## 模块简介
|
## 模块简介
|
||||||
|
|
||||||
该模块为 SpaceVim 提供了 puppet 语言开发支持。
|
该模块为 SpaceVim 提供了 Puppet 语言开发支持。
|
||||||
|
|
||||||
![puppet ide](https://user-images.githubusercontent.com/13142418/46022200-bb426f00-c114-11e8-84bc-d52dc83806c6.png)
|
![puppet ide](https://user-images.githubusercontent.com/13142418/46022200-bb426f00-c114-11e8-84bc-d52dc83806c6.png)
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim lang#purescript 模块"
|
title: "SpaceVim lang#purescript 模块"
|
||||||
description: "这一模块为 purescript 开发提供支持,包括代码补全、语法检查、代码格式化等特性。"
|
description: "这一模块为 SpaceVim 提供了 PureScript 的开发支持,包括代码补全、语法检查、代码格式化等特性。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ lang: cn
|
|||||||
|
|
||||||
## 模块简介
|
## 模块简介
|
||||||
|
|
||||||
这一模块为 SpaceVim 提供了 purescript 开发支持,包括代码补全、语法检查、以及代码格式化等特性。
|
这一模块为 SpaceVim 提供了 PureScript 开发支持,包括代码补全、语法检查、以及代码格式化等特性。
|
||||||
|
|
||||||
## 功能特性
|
## 功能特性
|
||||||
|
|
||||||
@ -27,7 +27,7 @@ lang: cn
|
|||||||
- 文档查询
|
- 文档查询
|
||||||
- 跳转定义处
|
- 跳转定义处
|
||||||
|
|
||||||
同时,SpaceVim 还为 purescript 开发提供了交互式编程、一键运行和语言服务器等功能。若要启用语言服务器,需要载入 `lsp` 模块。
|
同时,SpaceVim 还为 PureScript 开发提供了交互式编程、一键运行和语言服务器等功能。若要启用语言服务器,需要载入 `lsp` 模块。
|
||||||
|
|
||||||
## 启用模块
|
## 启用模块
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim lang#scheme 模块"
|
title: "SpaceVim lang#scheme 模块"
|
||||||
description: "该模块为 SpaceVim 提供了 scheme 语言开发支持,包括语法高亮、语言服务器支持。"
|
description: "这一模块为 SpaceVim 提供了 Scheme 语言开发支持,包括语法高亮、语言服务器支持。"
|
||||||
lang: cn
|
lang: cn
|
||||||
image: https://user-images.githubusercontent.com/13142418/46590501-4e50b100-cae6-11e8-9366-6772d129a13b.png
|
image: https://user-images.githubusercontent.com/13142418/46590501-4e50b100-cae6-11e8-9366-6772d129a13b.png
|
||||||
---
|
---
|
||||||
@ -17,7 +17,7 @@ image: https://user-images.githubusercontent.com/13142418/46590501-4e50b100-cae6
|
|||||||
|
|
||||||
## 模块简介
|
## 模块简介
|
||||||
|
|
||||||
该模块为 SpaceVim 提供了 scheme 语言开发支持。
|
这一模块为 SpaceVim 提供了 Scheme 语言开发支持,包括语法高亮、语言服务器支持。
|
||||||
|
|
||||||
## 功能特性
|
## 功能特性
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim lang#sh 模块"
|
title: "SpaceVim lang#sh 模块"
|
||||||
description: "这一模块为 shell script 开发提供支持,包括代码补全、语法检查、代码格式化等特性。"
|
description: "这一模块为 SpaceVim 提供了 Shell Script 的开发支持,包括代码补全、语法检查、代码格式化等特性。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -18,7 +18,7 @@ lang: cn
|
|||||||
|
|
||||||
## 模块简介
|
## 模块简介
|
||||||
|
|
||||||
这一模块为 SpaceVim 提供了 shell script 开发支持。Shell script 是指 bash script 和 zsh script。
|
这一模块为 SpaceVim 提供了 Shell Script 开发支持。Shell Script 是指 Bash script 和 Zsh script。
|
||||||
|
|
||||||
## 功能特性
|
## 功能特性
|
||||||
|
|
||||||
@ -28,7 +28,7 @@ lang: cn
|
|||||||
- 代码格式化
|
- 代码格式化
|
||||||
- 跳转定义处
|
- 跳转定义处
|
||||||
|
|
||||||
同时,SpaceVim 还为 shell script 开发提供了语言服务器等功能。若要启用语言服务器,需要载入 `lsp` 模块。
|
同时,SpaceVim 还为 Shell Script 开发提供了语言服务器等功能。若要启用语言服务器,需要载入 `lsp` 模块。
|
||||||
|
|
||||||
## 启用模块
|
## 启用模块
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ lang: cn
|
|||||||
### 语言专属快捷键
|
### 语言专属快捷键
|
||||||
|
|
||||||
| 按键 | 功能描述 |
|
| 按键 | 功能描述 |
|
||||||
| --------------- | --------------------------------------- |
|
| --------------- | -------------------------- |
|
||||||
| `SPC l d` / `K` | 展示光标函数或变量相关文档 |
|
| `SPC l d` / `K` | 展示光标函数或变量相关文档 |
|
||||||
| `g d` | 跳至函数或变量定义处 |
|
| `g d` | 跳至函数或变量定义处 |
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim lang#swift 模块"
|
title: "SpaceVim lang#swift 模块"
|
||||||
description: "该模块主要为 SpaceVim 提供了 swift 开发支持,包括语法高亮、语法检查等特性。"
|
description: "这一模块为 SpaceVim 提供了 Swift 的开发支持,包括语法高亮、语法检查等特性。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -17,7 +17,7 @@ lang: cn
|
|||||||
|
|
||||||
## 模块简介
|
## 模块简介
|
||||||
|
|
||||||
该模块主要为 SpaceVim 提供了 swift 开发支持。
|
这一模块为 SpaceVim 提供了 Swift 的开发支持,包括语法高亮、语法检查等特性。
|
||||||
|
|
||||||
## 功能特性
|
## 功能特性
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim lang#typescript 模块"
|
title: "SpaceVim lang#typescript 模块"
|
||||||
description: "这一模块为 typescript 开发提供支持,包括代码补全、语法检查、代码格式化等特性。"
|
description: "这一模块为 SpaceVim 提供了 Typescript 的开发支持,包括代码补全、语法检查、代码格式化等特性。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -18,7 +18,7 @@ lang: cn
|
|||||||
|
|
||||||
## 模块简介
|
## 模块简介
|
||||||
|
|
||||||
这一模块为 SpaceVim 提供了 typescript 开发支持,包括代码补全、语法检查、以及代码格式化等特性。
|
这一模块为 SpaceVim 提供了 Typescript 的开发支持,包括代码补全、语法检查、代码格式化等特性。
|
||||||
|
|
||||||
## 启用模块
|
## 启用模块
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim lang#vim 模块"
|
title: "SpaceVim lang#vim 模块"
|
||||||
description: "这一模块为 vim script 开发提供支持,包括代码补全、语法检查、代码格式化等特性。"
|
description: "这一模块为 SpaceVim 提供了 Vimscript 的开发支持,包括代码补全、语法检查、代码格式化等特性。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -16,7 +16,7 @@ lang: cn
|
|||||||
|
|
||||||
## 模块简介
|
## 模块简介
|
||||||
|
|
||||||
该模块主要为 Vim 脚本编辑提供支持,包括代码补全,语法检查等特性。
|
这一模块为 SpaceVim 提供了 Vimscript 的开发支持,包括代码补全、语法检查、代码格式化等特性。
|
||||||
|
|
||||||
## 启用模块
|
## 启用模块
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim lang#vue 模块"
|
title: "SpaceVim lang#vue 模块"
|
||||||
description: "这一模块为 vue 开发提供支持,包括代码补全、语法检查、代码格式化等特性。"
|
description: "这一模块为 SpaceVim 提供了 Vue 的的开发支持,包括代码补全、语法检查、代码格式化等特性。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -16,7 +16,7 @@ lang: cn
|
|||||||
|
|
||||||
## 模块简介
|
## 模块简介
|
||||||
|
|
||||||
这一模块为 SpaceVim 提供了 vue 开发支持。该模块包含了插件 [vim-vue](https://github.com/posva/vim-vue)。
|
这一模块为 SpaceVim 提供了 Vue 的的开发支持,包括代码补全、语法检查、代码格式化等特性。该模块包含了插件 [vim-vue](https://github.com/posva/vim-vue)。
|
||||||
|
|
||||||
## 功能特性
|
## 功能特性
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim lsp 模块"
|
title: "SpaceVim lsp 模块"
|
||||||
description: "lsp 模块为 SpaceVim 提供 language server protocol 的支持,提供更多语言相关服务"
|
description: "这一模块为 SpaceVim 提供了 language server protocol 的支持,提供更多语言相关服务。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -23,9 +23,9 @@ lsp 模块提供了 [language-server-protocol](https://microsoft.github.io/langu
|
|||||||
这以模块在 [LanguageClient-neovim](https://github.com/SpaceVim/LanguageClient-neovim) 基础上做了许多定制,
|
这以模块在 [LanguageClient-neovim](https://github.com/SpaceVim/LanguageClient-neovim) 基础上做了许多定制,
|
||||||
这一链接为一克隆的版本,需要 `+python` 支持。
|
这一链接为一克隆的版本,需要 `+python` 支持。
|
||||||
|
|
||||||
同时,当你的 Vim 不支持 `+python3` 时,我们采用 [vim-lsp](https://github.com/prabirshrestha/vim-lsp) 这一使用纯 vim 脚本书写的插件。
|
同时,当你的 Vim 不支持 `+python3` 时,我们采用 [vim-lsp](https://github.com/prabirshrestha/vim-lsp) 这一使用纯 Vim 脚本书写的插件。
|
||||||
|
|
||||||
neovim 团队也在尝试实现一个内置的 [lsp 框架](https://github.com/neovim/neovim/pull/6856),后续该框架完成后,在 neovim 内将默认使用该框架。
|
Neovim 团队也在尝试实现一个内置的 [lsp 框架](https://github.com/neovim/neovim/pull/6856),后续该框架完成后,在 Neovim 内将默认使用该框架。
|
||||||
|
|
||||||
在 SpaceVim 内部,lsp 的框架选择逻辑大致时这样的:
|
在 SpaceVim 内部,lsp 的框架选择逻辑大致时这样的:
|
||||||
|
|
||||||
@ -52,11 +52,11 @@ endif
|
|||||||
- 代码格式化
|
- 代码格式化
|
||||||
- 代码自动修复
|
- 代码自动修复
|
||||||
|
|
||||||
**注:** 以上所有信息依赖于语言服务器所实现的功能,请查阅 [Language Servers](https://microsoft.github.io/language-server-protocol/implementors/servers/) 列表。
|
**注:** 以上所有信息依赖于语言服务器所实现的功能,请查阅 [Language Servers](https://microsoft.github.io/language-server-protocol/implementors/servers/) 列表。
|
||||||
|
|
||||||
## 模块安装
|
## 模块安装
|
||||||
|
|
||||||
默认未载入,如需载入该模块,可在配置文件加入:
|
默认未载入,如需载入该模块,可在配置文件加入:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[[layers]]
|
[[layers]]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim leaderf 模块"
|
title: "SpaceVim leaderf 模块"
|
||||||
description: "提供以 leaderf 为核心的异步模糊查找机制,支持模糊搜索文件、历史纪录、函数列表等。"
|
description: "这一模块为 SpaceVim 提供了以 leaderf 为核心的异步模糊查找机制,支持模糊搜索文件、历史记录、函数列表等。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -16,7 +16,7 @@ lang: cn
|
|||||||
|
|
||||||
## 模块介绍
|
## 模块介绍
|
||||||
|
|
||||||
这一模块在 leaderf 的基础上做了时当的包装和定制,提供了搜索文件、函数列表、
|
这一模块在 leaderf 的基础上做了适当的包装和定制,提供了搜索文件、函数列表、
|
||||||
命令历史等等特性。
|
命令历史等等特性。
|
||||||
|
|
||||||
## 启用模块
|
## 启用模块
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim shell 模块"
|
title: "SpaceVim shell 模块"
|
||||||
description: "这一模块为 SpaceVim 提供了终端集成特性,优化内置终端的使用体验"
|
description: "这一模块为 SpaceVim 提供了终端集成特性,优化内置终端的使用体验。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -19,11 +19,11 @@ lang: cn
|
|||||||
|
|
||||||
## 模块描述
|
## 模块描述
|
||||||
|
|
||||||
这一模块为 SpaceVim 提供了 shell 集成,根据当前 vim/neovim 的版本,优化自带的内置终端。
|
这一模块为 SpaceVim 提供了 shell 集成,根据当前 Vim/Neovim 的版本,优化自带的内置终端。
|
||||||
|
|
||||||
## 启用模块
|
## 启用模块
|
||||||
|
|
||||||
如果需要启用该模块,需要在 SpaceVim 的配置文件内添加如下代码:
|
如果需要启用该模块,需要在 SpaceVim 的配置文件内添加如下配置:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[[layers]]
|
[[layers]]
|
||||||
@ -36,7 +36,7 @@ lang: cn
|
|||||||
|
|
||||||
SpaceVim 支持两种 shell,用户在启用该模块时,可以通过 `default_shell` 这一模块选项来指定默认的 shell 工具。
|
SpaceVim 支持两种 shell,用户在启用该模块时,可以通过 `default_shell` 这一模块选项来指定默认的 shell 工具。
|
||||||
|
|
||||||
- terminal:使用 vim/neovim 内置终端
|
- terminal:使用 Vim/Neovim 内置终端
|
||||||
- VimShell:使用 VimShell 这一插件
|
- VimShell:使用 VimShell 这一插件
|
||||||
|
|
||||||
The default shell is quickly accessible via a the default shortcut key `SPC '`.
|
The default shell is quickly accessible via a the default shortcut key `SPC '`.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim sudo 模块"
|
title: "SpaceVim sudo 模块"
|
||||||
description: "sudo 提供了在 SpaceVim 中以管理员身份读写文件的功能。"
|
description: "这一模块为 SpaceVim 提供了以管理员身份读写文件的功能。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim tags 模块"
|
title: "SpaceVim tags 模块"
|
||||||
description: "tags 模块提供全局的 tags 索引管理,提供快速检索定义和引用的功能。"
|
description: "这一模块为 SpaceVim 提供了全局的 tags 索引管理,提供快速检索定义和引用的功能。"
|
||||||
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
# [可用模块](../) >> tags
|
# [可用模块](../) >> tags
|
||||||
@ -147,18 +148,18 @@ gtags --gtagslabel=pygments
|
|||||||
|
|
||||||
如果你启用了 `exuberant ctags`,并且使用其作为后台(i.e., GTAGSLABEL=ctags or–gtagslabel=ctags),那么如下的语言将也得到支持:
|
如果你启用了 `exuberant ctags`,并且使用其作为后台(i.e., GTAGSLABEL=ctags or–gtagslabel=ctags),那么如下的语言将也得到支持:
|
||||||
|
|
||||||
- c#
|
- C#
|
||||||
- erlang
|
- Erlang
|
||||||
- javascript
|
- JavaScript
|
||||||
- common-lisp
|
- common-lisp
|
||||||
- emacs-lisp
|
- Emacs-lisp
|
||||||
- lua
|
- Lua
|
||||||
- ocaml
|
- Ocaml
|
||||||
- python
|
- Python
|
||||||
- ruby
|
- Ruby
|
||||||
- scheme
|
- Scheme
|
||||||
- vimscript
|
- Vimscript
|
||||||
- windows-scripts (.bat .cmd files)
|
- Windows-scripts (.bat .cmd files)
|
||||||
|
|
||||||
#### 通过 Universal ctags 支持的语言
|
#### 通过 Universal ctags 支持的语言
|
||||||
|
|
||||||
@ -177,13 +178,13 @@ pygments 后,可以通过 gtags 查询函数和变量的定义以及引用处
|
|||||||
当 pygments 启用后,如下语言将得以支持:
|
当 pygments 启用后,如下语言将得以支持:
|
||||||
|
|
||||||
- elixir
|
- elixir
|
||||||
- fsharp
|
- FSharp
|
||||||
- haskell
|
- Haskell
|
||||||
- octave
|
- Octave
|
||||||
- racket
|
- racket
|
||||||
- scala
|
- Scala
|
||||||
- shell-scripts
|
- shell-scripts
|
||||||
- tex
|
- TeX
|
||||||
|
|
||||||
## 快捷键
|
## 快捷键
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim tmux 模块"
|
title: "SpaceVim tmux 模块"
|
||||||
description: "该模块主要提供了一些在 Vim 内操作 tmux 的功能,使得在 tmux 窗口之间跳转更加便捷。"
|
description: "这一模块为 SpaceVim 提供了一些在 Vim 内操作 tmux 的功能,使得在 tmux 窗口之间跳转更加便捷。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -37,8 +37,8 @@ lang: cn
|
|||||||
|
|
||||||
## 模块选项
|
## 模块选项
|
||||||
|
|
||||||
- `tmuxline_separators`: 设置tmux的主要分隔符,默认等同于SpaceVim的 `statusline_separator`, 可选值包括: `arrow`, `curve`, `slant`, `barce`, `fire`, `nil`
|
- `tmuxline_separators`: 设置 tmux 的主要分隔符,默认等同于 SpaceVim 的 `statusline_separator`, 可选值包括:`arrow`, `curve`, `slant`, `barce`, `fire`, `nil`
|
||||||
- `tmuxline_separators_alt`: 设置tmux的分隔符,默认等同于SpaceVim的 `statusline_inactive_separator`,可选值包括: `arrow`, `bar`, `nil`
|
- `tmuxline_separators_alt`: 设置 tmux 的分隔符,默认等同于 SpaceVim 的 `statusline_inactive_separator`,可选值包括:`arrow`, `bar`, `nil`
|
||||||
- `tmux_navigator_modifier`: 设置 tmux 的移动快捷键,默认是 `ctrl`,可选值包括:`alt`, `ctrl`
|
- `tmux_navigator_modifier`: 设置 tmux 的移动快捷键,默认是 `ctrl`,可选值包括:`alt`, `ctrl`
|
||||||
|
|
||||||
## 快捷键
|
## 快捷键
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim tools 模块"
|
title: "SpaceVim tools 模块"
|
||||||
description: "集成多种常用工具,包括日历、计算器、等等多种工具类插件,该模块针对 vim8 以及 neovim 提供了更好的插件选择。"
|
description: "这一模块为 SpaceVim 提供了多种常用工具,包括日历、计算器等多种工具类插件,并针对 Vim8 以及 Neovim 提供了更好的插件选择。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim tools#dash 模块"
|
title: "SpaceVim tools#dash 模块"
|
||||||
description: "该模块提供对 Dash 支持,可快速查找光标位置的单词"
|
description: "这一模块为 SpaceVim 提供了 Dash 支持,可快速查找光标位置的单词。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -16,11 +16,11 @@ lang: cn
|
|||||||
|
|
||||||
## 模块描述
|
## 模块描述
|
||||||
|
|
||||||
该模块为 SpaceVim 提供了 Dash 集成
|
该模块为 SpaceVim 提供了 Dash 集成。
|
||||||
|
|
||||||
## 启用模块
|
## 启用模块
|
||||||
|
|
||||||
tools#dash 模块默认并为启用,如果需要启用该模块,需要在配置文件里面加入:
|
tools#dash 模块默认并未启用,如果需要启用该模块,需要在配置文件里面加入:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[[layers]]
|
[[layers]]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim ui 模块"
|
title: "SpaceVim ui 模块"
|
||||||
description: "SpaceVim ui 模块提供了一个 IDE-like 的界面,包括状态栏、文件树、语法数等等特性。"
|
description: "这一模块为 SpaceVim 提供了 IDE-like 的界面,包括状态栏、文件树、语法树等等特性。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim unite 模块"
|
title: "SpaceVim unite 模块"
|
||||||
description: "提供以 unite 为核心的模糊查找机制,支持模糊搜索文件、历史纪录、函数列表等。"
|
description: "这一模块为 SpaceVim 提供以 unite 为核心的模糊查找机制,支持模糊搜索文件、历史纪录、函数列表等。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -17,25 +17,25 @@ lang: cn
|
|||||||
- [Windows](#windows)
|
- [Windows](#windows)
|
||||||
- [在 Docker 中运行](#在-docker-中运行)
|
- [在 Docker 中运行](#在-docker-中运行)
|
||||||
- [配置](#配置)
|
- [配置](#配置)
|
||||||
- [学习SpaceVim](#学习spacevim)
|
- [学习 SpaceVim](#学习-spacevim)
|
||||||
- [在线指南](#在线指南)
|
- [在线指南](#在线指南)
|
||||||
|
|
||||||
<!-- vim-markdown-toc -->
|
<!-- vim-markdown-toc -->
|
||||||
|
|
||||||
### 安装
|
### 安装
|
||||||
|
|
||||||
在安装 SpaceVim 之前,你需要确保电脑上已经安装了 `git` 和 `curl`。这两个工具用来
|
在安装 SpaceVim 之前,你需要确保电脑上已经安装了 `Git` 和 `cURL`。这两个工具用来
|
||||||
下载插件以及字体。
|
下载插件以及字体。
|
||||||
|
|
||||||
如果在终端中使用 vim 或者 neovim,还需要设置终端的字体。
|
如果在终端中使用 Vim 或 Neovim,还需要设置终端的字体。
|
||||||
|
|
||||||
#### Linux 或 macOS
|
#### Linux 或 macOS
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
curl -sLf https://spacevim.org/cn/install.sh | bash
|
curl -sLf https://spacevim.org/cn/install.sh | bash
|
||||||
```
|
```
|
||||||
|
|
||||||
安装结束后,初次打开 `vim` 或者 `gvim` 时, SpaceVim 会**自动**下载并安装插件。
|
安装结束后,初次打开 `Vim` 或者 `gVim` 时,SpaceVim 会**自动**下载并安装插件。
|
||||||
|
|
||||||
如果需要获取安装脚本的帮助信息,可以执行如下命令,包括定制安装、更新和卸载等。
|
如果需要获取安装脚本的帮助信息,可以执行如下命令,包括定制安装、更新和卸载等。
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ curl -sLf https://spacevim.org/cn/install.sh | bash -s -- -h
|
|||||||
|
|
||||||
#### Windows
|
#### Windows
|
||||||
|
|
||||||
windows 下最快捷的安装方法是下载安装脚本 [install.cmd](https://spacevim.org/cn/install.cmd) 并运行。
|
Windows 下最快捷的安装方法是下载安装脚本 [install.cmd](https://spacevim.org/cn/install.cmd) 并运行。
|
||||||
|
|
||||||
|
|
||||||
### 在 Docker 中运行
|
### 在 Docker 中运行
|
||||||
@ -55,7 +55,7 @@ docker pull spacevim/spacevim
|
|||||||
docker run -it --rm spacevim/spacevim nvim
|
docker run -it --rm spacevim/spacevim nvim
|
||||||
```
|
```
|
||||||
|
|
||||||
也可以通过挂载的方式,载入本地配置:
|
也可以通过挂载的方式载入本地配置:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker run -it -v ~/.SpaceVim.d:/home/spacevim/.SpaceVim.d --rm spacevim/spacevim nvim
|
docker run -it -v ~/.SpaceVim.d:/home/spacevim/.SpaceVim.d --rm spacevim/spacevim nvim
|
||||||
@ -71,12 +71,12 @@ SpaceVim 的默认配置文件为 `~/.SpaceVim.d/init.toml`。下面为一简单
|
|||||||
```toml
|
```toml
|
||||||
# 这是一个基础的 SpaceVim 配置示例
|
# 这是一个基础的 SpaceVim 配置示例
|
||||||
|
|
||||||
# 所有的 SpaceVim 选项都列在 [option] 之下
|
# 所有的 SpaceVim 选项都列在 [options] 之下
|
||||||
[options]
|
[options]
|
||||||
# 设置 SpaceVim 主题及背景,默认的主题是 gruvbox,如果你需要使用更
|
# 设置 SpaceVim 主题及背景,默认的主题是 gruvbox,如果你需要使用更
|
||||||
# 多的主题,你可以载入 colorscheme 模块
|
# 多的主题,你可以载入 colorscheme 模块
|
||||||
colorscheme = "gruvbox"
|
colorscheme = "gruvbox"
|
||||||
# 背景可以取值 "dark" 和 "light"
|
# 背景可以取值 "dark" 或 "light"
|
||||||
colorscheme_bg = "dark"
|
colorscheme_bg = "dark"
|
||||||
# 启用/禁用终端真色,在目前大多数终端下都是支持真色的,当然也有
|
# 启用/禁用终端真色,在目前大多数终端下都是支持真色的,当然也有
|
||||||
# 一小部分终端不支持真色,如果你的 SpaceVim 颜色看上去比较怪异
|
# 一小部分终端不支持真色,如果你的 SpaceVim 颜色看上去比较怪异
|
||||||
@ -93,7 +93,7 @@ SpaceVim 的默认配置文件为 `~/.SpaceVim.d/init.toml`。下面为一简单
|
|||||||
# 3: 1 ➛ ¹
|
# 3: 1 ➛ ¹
|
||||||
# 4: 1 ➛ 1
|
# 4: 1 ➛ 1
|
||||||
buffer_index_type = 4
|
buffer_index_type = 4
|
||||||
# 显示/隐藏顶部标签栏上文件类型图标,这一图标需要安装 nerd fonts,
|
# 显示/隐藏顶部标签栏上的文件类型图标,这一图标需要安装 nerd fonts,
|
||||||
# 如果未能成功安装这一字体,可以隐藏图标
|
# 如果未能成功安装这一字体,可以隐藏图标
|
||||||
enable_tabline_filetype_icon = true
|
enable_tabline_filetype_icon = true
|
||||||
# 是否在状态栏上显示当前模式,默认情况下,不显示 Normal/Insert 等
|
# 是否在状态栏上显示当前模式,默认情况下,不显示 Normal/Insert 等
|
||||||
@ -102,20 +102,19 @@ SpaceVim 的默认配置文件为 `~/.SpaceVim.d/init.toml`。下面为一简单
|
|||||||
|
|
||||||
# SpaceVim 模块设置,主要包括启用/禁用模块
|
# SpaceVim 模块设置,主要包括启用/禁用模块
|
||||||
|
|
||||||
# 启用 autocomplete 模块, 启用模块时,可以列出一些模块选项,并赋值,
|
# 启用 autocomplete 模块,启用模块时,可以列出一些模块选项,并赋值,
|
||||||
# 关于模块的选项,请阅读各个模块的文档
|
# 关于模块的选项,请阅读各个模块的文档
|
||||||
[[layers]]
|
[[layers]]
|
||||||
name = "autocomplete"
|
name = "autocomplete"
|
||||||
auto-completion-return-key-behavior = "complete"
|
auto-completion-return-key-behavior = "complete"
|
||||||
auto-completion-tab-key-behavior = "cycle"
|
auto-completion-tab-key-behavior = "cycle"
|
||||||
|
|
||||||
# 禁用 shell 模块, 禁用模块时,需要加入 enable = false
|
# 禁用 shell 模块,禁用模块时,需要加入 enable = false
|
||||||
[[layers]]
|
[[layers]]
|
||||||
name = "shell"
|
name = "shell"
|
||||||
enable = false
|
enable = false
|
||||||
|
|
||||||
# 添加自定义插件
|
# 添加自定义插件
|
||||||
|
|
||||||
[[custom_plugins]]
|
[[custom_plugins]]
|
||||||
name = "lilydjwg/colorizer"
|
name = "lilydjwg/colorizer"
|
||||||
merged = 0
|
merged = 0
|
||||||
@ -125,18 +124,17 @@ merged = 0
|
|||||||
|
|
||||||
- [SpaceVim 用户文档](../documentation/). SpaceVim 官方文档,包含了 SpaceVim 配置及使用的每一个细节,是熟悉和掌握 SpaceVim 使用技巧的必备资料。
|
- [SpaceVim 用户文档](../documentation/). SpaceVim 官方文档,包含了 SpaceVim 配置及使用的每一个细节,是熟悉和掌握 SpaceVim 使用技巧的必备资料。
|
||||||
- [Hack-SpaceVim](https://github.com/Gabirel/Hack-SpaceVim). Tell you how to hack SpaceVim.
|
- [Hack-SpaceVim](https://github.com/Gabirel/Hack-SpaceVim). Tell you how to hack SpaceVim.
|
||||||
- [SpaceVim 入门教程](https://everettjf.gitbooks.io/spacevimtutorial/content/):everettjf 所著的 SpaceVim 入门教程
|
- [SpaceVim 入门教程](https://everettjf.gitbooks.io/spacevimtutorial/content/):everettjf 所著的 SpaceVim 入门教程。
|
||||||
|
|
||||||
### 在线指南
|
### 在线指南
|
||||||
|
|
||||||
以下主要为 SpaceVim 的基本使用教程,侧重于各种语言开发环境的搭建,可以理解为 SpaceVim 用户文档的精简版,主要包括以下内容:
|
以下主要为 SpaceVim 的基本使用教程,侧重于各种语言开发环境的搭建,可以理解为 SpaceVim 用户文档的精简版,主要包括以下内容:
|
||||||
|
|
||||||
- [使用 SpaceVim 搭建基本的开发环境](../use-vim-as-ide/):涵盖一些窗口及文件的常规操作
|
- [使用 SpaceVim 搭建基本的开发环境](../use-vim-as-ide/):涵盖一些窗口及文件的常规操作。
|
||||||
|
|
||||||
|
|
||||||
针对不同语言,一些基础的配置及使用技巧:
|
针对不同语言,一些基础的配置及使用技巧:
|
||||||
|
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
{% for post in site.categories.tutorials_cn %}
|
{% for post in site.categories.tutorials_cn %}
|
||||||
<li>
|
<li>
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
---
|
---
|
||||||
title: "赞助"
|
title: "赞助"
|
||||||
description: "SpaceVim 赞助方式,以及历史赞助,如果你想赞助 SpaceVim,或者希望 SpaceVim 开发的更快一点,可以选择以下某种方式进行赞助"
|
description: "SpaceVim 赞助方式,以及历史赞助,如果你想赞助 SpaceVim,或者希望 SpaceVim 开发的更快一点,可以选择以下某种方式进行赞助。"
|
||||||
lang: cn
|
lang: cn
|
||||||
---
|
---
|
||||||
|
|
||||||
# 赞助
|
# 赞助
|
||||||
|
|
||||||
如果你想赞助 SpaceVim,或者希望 SpaceVim 开发的更快一点,可以选择以下某种方式进行赞助:
|
如果你想赞助 SpaceVim,或者希望 SpaceVim 开发得更快一点,可以选择以下某种方式进行赞助:
|
||||||
|
|
||||||
- [通过 BountySource](https://www.bountysource.com/teams/spacevim)
|
- [通过 BountySource](https://www.bountysource.com/teams/spacevim)
|
||||||
- [通过 Open Collective](https://opencollective.com/spacevim)
|
- [通过 Open Collective](https://opencollective.com/spacevim)
|
||||||
@ -19,16 +19,16 @@ lang: cn
|
|||||||
| ------------------------------------------------------------------------ | -------------------------------------------------------------------------- |
|
| ------------------------------------------------------------------------ | -------------------------------------------------------------------------- |
|
||||||
| <img src="../../img/weixin.png" height="150" width="150"> | <img src="../../img/zhifubao.png" height="150" width="150"> |
|
| <img src="../../img/weixin.png" height="150" width="150"> | <img src="../../img/zhifubao.png" height="150" width="150"> |
|
||||||
|
|
||||||
比特币: 1DtuVeg81c2L9NEhDaVTAAbrCR3pN5xPFv
|
比特币:1DtuVeg81c2L9NEhDaVTAAbrCR3pN5xPFv
|
||||||
|
|
||||||
## 历史赞助
|
## 历史赞助
|
||||||
|
|
||||||
以下是所有的历史赞助,记住那些曾经爱心赞助的人们,非常感谢,你们的鼓励就是我坚持的动力 (排名不分先后,如有遗漏疏忽,请务必告知)
|
以下是所有的历史赞助,记住那些曾经爱心赞助的人们,非常感谢,你们的鼓励就是我坚持的动力(排名不分先后,如有遗漏疏忽,请务必告知)。
|
||||||
|
|
||||||
同时,你也可以查看 [Bountysource campaign](https://www.bountysource.com/teams/spacevim) 获取更多信息.
|
同时,你也可以查看 [Bountysource campaign](https://www.bountysource.com/teams/spacevim) 获取更多信息。
|
||||||
|
|
||||||
| 日期 | 金额 | 描述 |
|
| 日期 | 金额 | 描述 |
|
||||||
| ------------ | ------- | -------------------------------------- |
|
| ------------ | ------- | ----------------- |
|
||||||
| 2016-09-26 | ¥ 100 | *好 |
|
| 2016-09-26 | ¥ 100 | *好 |
|
||||||
| 2016-09-26 | ¥ 300 | *好 |
|
| 2016-09-26 | ¥ 300 | *好 |
|
||||||
| 2016-11-22 | ¥ 20 | *续 |
|
| 2016-11-22 | ¥ 20 | *续 |
|
||||||
@ -97,7 +97,7 @@ lang: cn
|
|||||||
|
|
||||||
## 历史支出
|
## 历史支出
|
||||||
|
|
||||||
| 日期 | 金额 | 描述 |
|
| 日期 | 金额 | 描述 |
|
||||||
| ---------- | ------- | -------------------------------------- |
|
| ---------- | ------- | ----- |
|
||||||
| 2017-06-10 | - $ 5 | 主机 |
|
| 2017-06-10 | - $ 5 | 主机 |
|
||||||
| 2017-01-03 | - ¥ 225 | 域名 |
|
| 2017-01-03 | - ¥ 225 | 域名 |
|
||||||
|
@ -68,7 +68,7 @@ documentation.
|
|||||||
```toml
|
```toml
|
||||||
# This is basic configuration example for SpaceVim
|
# This is basic configuration example for SpaceVim
|
||||||
|
|
||||||
# All SpaceVim option below [option] section
|
# All SpaceVim options are below [options] section
|
||||||
[options]
|
[options]
|
||||||
# set spacevim theme. by default colorscheme layer is not loaded,
|
# set spacevim theme. by default colorscheme layer is not loaded,
|
||||||
# if you want to use more colorscheme, please load the colorscheme
|
# if you want to use more colorscheme, please load the colorscheme
|
||||||
|
Loading…
Reference in New Issue
Block a user