1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-23 01:09:56 +08:00

Fix quick guide

This commit is contained in:
wsdjeg 2018-05-18 20:46:01 +08:00
parent 9b9bbd9f55
commit fbc6bd0541

View File

@ -7,8 +7,8 @@ lang: cn
# SpaceVim 入门指南 # SpaceVim 入门指南
如果你从未使用过 SpaceVim建议先阅读这篇简短的教程。这篇教程主要讲述什么是 SpaceVim 如果你从未使用过 SpaceVim建议先阅读这篇简短的教程。这篇教程主要讲述
如何安装 SpaceVimSpaceVim 的入门配置以及基本特性 如何安装 SpaceVimSpaceVim 的入门配置以及 SpaceVim 常用学习资源。
<!-- vim-markdown-toc GFM --> <!-- vim-markdown-toc GFM -->
@ -52,42 +52,53 @@ SpaceVim 的默认配置文件为 `~/.SpaceVim.d/init.toml`。下面为一简单
```toml ```toml
# This is basic configuration example for SpaceVim # 这是一个基础的 SpaceVim 配置示例
# All SpaceVim option below [option] section # 所有的 SpaceVim 选项都列在 [option] 之下
[options] [options]
# set spacevim theme. by default colorscheme layer is not loaded, # 设置 SpaceVim 主题及背景,默认的主题是 gruvbox如果你需要使用更
# if you want to use more colorscheme, please load the colorscheme # 多的主题,你可以载入 colorscheme 模块
# layer, the value of this option is a string.
colorscheme = "gruvbox" colorscheme = "gruvbox"
# 背景可以取值 "dark" 和 "light"
background = "dark" background = "dark"
# Disable guicolors in basic mode, many terminal do not support 24bit # 启用/禁用终端真色,在目前大多数终端下都是支持真色的,当然也有
# true colors, the type of the value is boolean, true or false. # 一小部分终端不支持真色,如果你的 SpaceVim 颜色看上去比较怪异
# 可以禁用终端真色,将下面的值设为 false
guicolors = true guicolors = true
# Disable statusline separator, if you want to use other value, please # 设置状态栏上分割符号形状,如果字体安装失败,可以将值设为 "nil" 以
# install nerd fonts # 禁用分割符号,默认为箭头 "arrow"
statusline_separator = "nil" statusline_separator = "nil"
statusline_separator = "bar" statusline_separator = "bar"
# 设置顶部标签列表序号类型,有以下五种类型,分别是 0 - 4
# 0: 1 ➛ ➊
# 1: 1 ➛ ➀
# 2: 1 ➛ ⓵
# 3: 1 ➛ ¹
# 4: 1 ➛ 1
buffer_index_type = 4 buffer_index_type = 4
# Display file type icon on the tabline, If you do not have nerd fonts installed, # 显示/隐藏顶部标签栏上文件类型图标,这一图标需要安装 nerd fonts
# please change the value to false # 如果未能成功安装这一字体,可以隐藏图标
enable_tabline_filetype_icon = true enable_tabline_filetype_icon = true
# Display current mode text on statusline, by default It is disabled, only color # 是否在状态栏上显示当前模式,默认情况下,不显示 Normal/Insert 等
# will be changed when switch modes. # 字样,只以颜色区分当前模式
statusline_display_mode = false statusline_display_mode = false
# Enable autocomplete layer # SpaceVim 模块设置,主要包括启用/禁用模块
# 启用 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
[[layers]] [[layers]]
name = "shell" name = "shell"
default_position = "top" enable = false
default_height = 30
# 添加自定义插件
# This is an example for adding custom plugins lilydjwg/colorizer
[[custom_plugins]] [[custom_plugins]]
name = "lilydjwg/colorizer" name = "lilydjwg/colorizer"
merged = 0 merged = 0
@ -95,6 +106,6 @@ merged = 0
## 学习SpaceVim ## 学习SpaceVim
- [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 入门教程