mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-04-14 23:49:19 +08:00
Remove jekyll-seo (#3518)
This commit is contained in:
parent
b1b5146515
commit
df53725148
@ -1,5 +1,3 @@
|
||||
source 'https://rubygems.org'
|
||||
gem 'github-pages', group: :jekyll_plugins
|
||||
gem 'jekyll-redirect-from', group: :jekyll_plugins
|
||||
gem 'jekyll-seo-tag'
|
||||
gem 'rouge', :github => 'rouge-ruby/rouge'
|
||||
|
@ -13,7 +13,6 @@ lang: en
|
||||
|
||||
plugins:
|
||||
- jekyll-redirect-from
|
||||
- jekyll-seo-tag
|
||||
|
||||
github: [metadata]
|
||||
|
||||
@ -24,12 +23,6 @@ sass:
|
||||
sass_dir: _sass
|
||||
style: compressed
|
||||
|
||||
author:
|
||||
name: Shidong Wang
|
||||
twitter: SpaceVim
|
||||
twitter:
|
||||
username: "@SpaceVim"
|
||||
|
||||
social:
|
||||
name: SpaceVim
|
||||
links:
|
||||
|
@ -4,7 +4,8 @@
|
||||
<title>{{ page.title }} | SpaceVim</title>
|
||||
<meta name="baidu-site-verification" content="AN14j6xQVd" />
|
||||
<meta name="yandex-verification" content="8de09d07572b8dcc" />
|
||||
{% seo title=false %} {% if page.lang == "zh" %}
|
||||
<meta name="author" content="Shidong Wang" />
|
||||
<meta name="description" content="{{ page.description }}" />
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="https://tajs.qq.com/stats?sId=60680063"
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: SpaceVim release v0.1.0
|
||||
categories: [changelog, blog]
|
||||
excerpt: "First public release of SpaceVim with IDE-like UI, most language support, modular configuration"
|
||||
description: "First public release of SpaceVim with IDE-like UI, most language support, modular configuration"
|
||||
type: NewsArticle
|
||||
comments: true
|
||||
commentsID: "SpaceVim release v0.1.0"
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: "Use Vim as a Java IDE"
|
||||
categories: [tutorials, blog]
|
||||
excerpt: "A general guide for using SpaceVim as Java IDE, including layer configuration and requiems installation."
|
||||
description: "A general guide for using SpaceVim as Java IDE, including layer configuration and requiems installation."
|
||||
redirect_from: "/2017/02/11/use-vim-as-a-java-ide.html"
|
||||
type: BlogPosting
|
||||
comments: true
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: "VIM 8 新特性之旅: 定时器 (timers)"
|
||||
categories: [blog_cn, feature_cn]
|
||||
excerpt: "VIM 8 新特性之旅系列教程 - 定时器, 介绍定时器具体使用方法以及场景"
|
||||
description: "VIM 8 新特性之旅系列教程 - 定时器, 介绍定时器具体使用方法以及场景"
|
||||
permalink: /cn/:title/
|
||||
redirect_from: "/vim8-new-feature-timers-zh_cn/"
|
||||
lang: zh
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: "Install vim/neovim with python support"
|
||||
categories: blog
|
||||
excerpt: "How to build vim or neovim from source with python enabled?"
|
||||
description: "How to build vim or neovim from source with python enabled?"
|
||||
comments: true
|
||||
commentsID: "Install neovim or vim"
|
||||
---
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: SpaceVim release v0.2.0
|
||||
categories: [changelog, blog]
|
||||
excerpt: "Mnemonic key bindings in SpaceVim"
|
||||
description: "Mnemonic key bindings in SpaceVim"
|
||||
type: NewsArticle
|
||||
commentsID: "SpaceVim release v0.2.0"
|
||||
comments: true
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: "Mnemonic key bindings navigation"
|
||||
categories: [feature, blog]
|
||||
excerpt: "Key bindings are organized using mnemonic prefixes like b for buffer, p for project, s for search, h for help, etc…"
|
||||
description: "Key bindings are organized using mnemonic prefixes like b for buffer, p for project, s for search, h for help, etc…"
|
||||
image: https://user-images.githubusercontent.com/13142418/80597412-62f2f200-8a5a-11ea-9dbf-30ec9f82422a.gif
|
||||
commentsID: "Mnemonic key bindings navigation"
|
||||
comments: true
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: "Newsletter #1 - A New Hope"
|
||||
categories: [newsletter, blog]
|
||||
excerpt: "A new hope: turn vim/neovim to be an IDE for most languages"
|
||||
description: "A new hope: turn vim/neovim to be an IDE for most languages"
|
||||
comments: true
|
||||
commentsID: "A New Hope"
|
||||
---
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: SpaceVim release v0.3.0
|
||||
categories: [changelog, blog]
|
||||
excerpt: "The major change happend in v0.3.0 is new mapping guide and custom mapping prefix SPC."
|
||||
description: "The major change happend in v0.3.0 is new mapping guide and custom mapping prefix SPC."
|
||||
type: NewsArticle
|
||||
commentsID: "SpaceVim release v0.3.0"
|
||||
comments: true
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: SpaceVim release v0.3.1
|
||||
categories: [changelog, blog]
|
||||
excerpt: "New release v0.3.1 provides better key binding guide for buffer and file, including z and g prefix guide."
|
||||
description: "New release v0.3.1 provides better key binding guide for buffer and file, including z and g prefix guide."
|
||||
type: NewsArticle
|
||||
commentsID: "SpaceVim release v0.3.1"
|
||||
comments: true
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: SpaceVim release v0.4.0
|
||||
categories: [changelog, blog]
|
||||
excerpt: "New release v0.4.0 provides a new UI for plugin manager and built-in flygrep plugin"
|
||||
description: "New release v0.4.0 provides a new UI for plugin manager and built-in flygrep plugin"
|
||||
type: NewsArticle
|
||||
commentsID: "SpaceVim release v0.4.0"
|
||||
comments: true
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: "Asynchronous plugin manager"
|
||||
categories: [feature, blog]
|
||||
excerpt: "Use dein as default plugin manager, Provides a UI for dein, Install and update plugin asynchronously, Show process status on the fly"
|
||||
description: "Use dein as default plugin manager, Provides a UI for dein, Install and update plugin asynchronously, Show process status on the fly"
|
||||
image: https://user-images.githubusercontent.com/13142418/80597767-e1e82a80-8a5a-11ea-85ad-031a6f3240f0.gif
|
||||
commentsID: "Asynchronous plugin manager"
|
||||
comments: true
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: "VIM 中 ctrl 相关的组合键的使用"
|
||||
categories: [blog_cn, feature_cn]
|
||||
excerpt: "枚举 Vim 内置的 Ctrl 组合键功能,以及终端下的一些区别"
|
||||
description: "枚举 Vim 内置的 Ctrl 组合键功能,以及终端下的一些区别"
|
||||
image: https://user-images.githubusercontent.com/13142418/80597957-32f81e80-8a5b-11ea-9e46-6c78b4fd5453.png
|
||||
comments: true
|
||||
commentsID: "VIM 中 ctrl 相关的组合键的使用"
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: SpaceVim release v0.5.0
|
||||
categories: [changelog, blog]
|
||||
excerpt: "SpaceVim v0.5.0 comes out with five new language layer and many new features"
|
||||
description: "SpaceVim v0.5.0 comes out with five new language layer and many new features"
|
||||
type: NewsArticle
|
||||
commentsID: "SpaceVim release v0.5.0"
|
||||
comments: true
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: "Help description for key bindings"
|
||||
categories: [feature, blog]
|
||||
excerpt: "Key bindings are defined with help description, this feature is for getting Help description and jump to the position where the key bindings is defined."
|
||||
description: "Key bindings are defined with help description, this feature is for getting Help description and jump to the position where the key bindings is defined."
|
||||
image: https://user-images.githubusercontent.com/13142418/34907415-c2cf7e88-f843-11e7-92d3-ef0f9b1b72ae.gif
|
||||
commentsID: "Help description for key bindings"
|
||||
comments: true
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: "An async code runner in SpaceVim"
|
||||
categories: blog
|
||||
excerpt: "A better way for running code with in vim, more info about the command status, will not move cursor from code buffer."
|
||||
description: "A better way for running code with in vim, more info about the command status, will not move cursor from code buffer."
|
||||
commentsID: "Async code runner"
|
||||
comments: true
|
||||
---
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: SpaceVim release v0.6.0
|
||||
categories: [changelog, blog]
|
||||
excerpt: "Many new features come out with v0.6.0, including c/cpp suport and code runner"
|
||||
description: "Many new features come out with v0.6.0, including c/cpp suport and code runner"
|
||||
type: NewsArticle
|
||||
image: https://user-images.githubusercontent.com/13142418/80607319-f1ba3b80-8a67-11ea-834c-344916bcb314.png
|
||||
commentsID: "SpaceVim release v0.6.0"
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: "Newsletter #2 - Never lost, Never give up"
|
||||
categories: [newsletter, blog]
|
||||
excerpt: "We know exactly what is the purpose of SpaceVim, and we keep trying to get it, never get lost, never give up..."
|
||||
description: "We know exactly what is the purpose of SpaceVim, and we keep trying to get it, never get lost, never give up..."
|
||||
image: https://user-images.githubusercontent.com/13142418/80607642-54abd280-8a68-11ea-98ec-4998d099d797.png
|
||||
commentsID: "Never lost Never give up"
|
||||
comments: true
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: "Grep on the fly in SpaceVim"
|
||||
categories: [feature, blog]
|
||||
excerpt: "Run grep asynchronously, show search results in real-time based on user input, support searching the entire project, searching loaded files or only searching current file"
|
||||
description: "Run grep asynchronously, show search results in real-time based on user input, support searching the entire project, searching loaded files or only searching current file"
|
||||
image: https://user-images.githubusercontent.com/13142418/80607963-b704d300-8a68-11ea-99c4-5b5bd653cb24.gif
|
||||
commentsID: "Grep on the fly"
|
||||
comments: true
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: "Vim 异步实时代码检索"
|
||||
categories: [blog_cn, feature_cn]
|
||||
excerpt: "异步执行 grep,根据输入内容实时展示搜索结果,支持全工程检索、检索当前文件、检索已打开的文件等"
|
||||
description: "异步执行 grep,根据输入内容实时展示搜索结果,支持全工程检索、检索当前文件、检索已打开的文件等"
|
||||
image: https://user-images.githubusercontent.com/13142418/80607963-b704d300-8a68-11ea-99c4-5b5bd653cb24.gif
|
||||
commentsID: "Vim 异步实时代码检索"
|
||||
comments: true
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: SpaceVim release v0.7.0
|
||||
categories: [changelog, blog]
|
||||
excerpt: "Highlight symbol mode and iedit mode come out with v0.7.0"
|
||||
description: "Highlight symbol mode and iedit mode come out with v0.7.0"
|
||||
type: NewsArticle
|
||||
image: https://user-images.githubusercontent.com/13142418/80610138-90946700-8a6b-11ea-8565-04f041e56da5.png
|
||||
commentsID: "SpaceVim release v0.7.0"
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: SpaceVim release v0.8.0
|
||||
categories: [changelog, blog]
|
||||
excerpt: "Use toml as default configuration file for SpaceVim"
|
||||
description: "Use toml as default configuration file for SpaceVim"
|
||||
type: NewsArticle
|
||||
image: https://user-images.githubusercontent.com/13142418/80610442-f41e9480-8a6b-11ea-8e0e-16ef35460253.png
|
||||
commentsID: "SpaceVim release v0.8.0"
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: "SpaceVim MeetUp in HangZhou"
|
||||
categories: [meetup, blog]
|
||||
excerpt: "Our first meetup in hangzhou, general discussion about features of SpaceVim."
|
||||
description: "Our first meetup in hangzhou, general discussion about features of SpaceVim."
|
||||
image: https://user-images.githubusercontent.com/13142418/80610943-8de64180-8a6c-11ea-9e0b-bdc3c9d8dbd3.jpg
|
||||
commentsID: "SpaceVim MeetUp in HangZhou"
|
||||
comments: true
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: "使用 Vim 搭建 Java 开发环境"
|
||||
categories: [tutorials_cn, blog_cn]
|
||||
excerpt: "如何使用 Vim 搭建 Java 的开发环境,自动补全、语法检查、代码格式化、交互式编程以及断点调试相关使用技巧"
|
||||
description: "如何使用 Vim 搭建 Java 的开发环境,自动补全、语法检查、代码格式化、交互式编程以及断点调试相关使用技巧"
|
||||
permalink: /cn/:title/
|
||||
lang: zh
|
||||
type: BlogPosting
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: SpaceVim release v0.9.0
|
||||
categories: [changelog, blog]
|
||||
excerpt: "15+ new language layer support in SpaceVim"
|
||||
description: "15+ new language layer support in SpaceVim"
|
||||
type: NewsArticle
|
||||
image: https://user-images.githubusercontent.com/13142418/80614489-17980e00-8a71-11ea-89eb-78b441093b20.png
|
||||
commentsID: "SpaceVim release v0.9.0"
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: "Use Vim as a Python IDE"
|
||||
categories: [tutorials, blog]
|
||||
excerpt: "A general guide for using SpaceVim as Python IDE, including layer configuration, requiems installation and usage."
|
||||
description: "A general guide for using SpaceVim as Python IDE, including layer configuration, requiems installation and usage."
|
||||
type: BlogPosting
|
||||
comments: true
|
||||
commentsID: "Use Vim as a Python IDE"
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: "使用 Vim 搭建基本开发环境"
|
||||
categories: [blog_cn]
|
||||
excerpt: "这篇文章主要介绍如何使用 SpaceVim 搭建基本的的开发环境,简介 SpaceVim 基本的使用技巧"
|
||||
description: "这篇文章主要介绍如何使用 SpaceVim 搭建基本的的开发环境,简介 SpaceVim 基本的使用技巧"
|
||||
permalink: /cn/:title/
|
||||
lang: zh
|
||||
type: BlogPosting
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: "使用 Vim 搭建 Python 开发环境"
|
||||
categories: [tutorials_cn, blog_cn]
|
||||
excerpt: "这篇文章主要介绍如何使用 SpaceVim 搭建 Python 的开发环境,简介 lang#python 模块所支持的功能特性以及使用技巧"
|
||||
description: "这篇文章主要介绍如何使用 SpaceVim 搭建 Python 的开发环境,简介 lang#python 模块所支持的功能特性以及使用技巧"
|
||||
permalink: /cn/:title/
|
||||
lang: zh
|
||||
type: BlogPosting
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: "Use Vim as IDE"
|
||||
categories: [blog]
|
||||
excerpt: "A general guide for using SpaceVim as general IDE"
|
||||
description: "A general guide for using SpaceVim as general IDE"
|
||||
type: BlogPosting
|
||||
comments: true
|
||||
commentsID: "Use Vim as IDE"
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: SpaceVim release v1.0.0
|
||||
categories: [changelog, blog]
|
||||
excerpt: "V1.0.0 is the first stable version of SpaceVim, which is mainly about experience and user documentation."
|
||||
description: "V1.0.0 is the first stable version of SpaceVim, which is mainly about experience and user documentation."
|
||||
type: NewsArticle
|
||||
image: https://user-images.githubusercontent.com/13142418/50423286-5b33a400-088e-11e9-830c-792ce1c7c126.png
|
||||
commentsID: "SpaceVim release v1.0.0"
|
||||
|
@ -1,23 +1,23 @@
|
||||
---
|
||||
title: "SpaceVim 中一键异步运行"
|
||||
categories: [blog_cn, feature_cn]
|
||||
excerpt: "异步执行当前文件,并将结果展示在下方窗口"
|
||||
permalink: /cn/:title/
|
||||
lang: zh
|
||||
type: BlogPosting
|
||||
comments: true
|
||||
commentsID: "VIM 异步代码执行"
|
||||
---
|
||||
|
||||
# [Blogs](../blog/) >> SpaceVim 中一键异步运行
|
||||
|
||||
|
||||
当编辑代码时,通常有这样的需求,即为快速运行当前文件。而 Vim 自带的 `:!` 命令可以用来执行外部命令。
|
||||
但是该方式执行外部命令时并不是异步的,会锁定当前编辑器,进而影响其他编辑操作。
|
||||
|
||||
以下动态图展示了如何在 SpaceVim 内通过异步代码运行器来快速运行当前文件。
|
||||
|
||||

|
||||
|
||||
在运行输出窗口最上方显示了编译、运行的实际命令,而最后一行则显示了运行结果。
|
||||
默认的快捷键为 `SPC l r`,`SPC` 指的是键盘上的空格键。
|
||||
---
|
||||
title: "SpaceVim 中一键异步运行"
|
||||
categories: [blog_cn, feature_cn]
|
||||
description: "异步执行当前文件,并将结果展示在下方窗口"
|
||||
permalink: /cn/:title/
|
||||
lang: zh
|
||||
type: BlogPosting
|
||||
comments: true
|
||||
commentsID: "VIM 异步代码执行"
|
||||
---
|
||||
|
||||
# [Blogs](../blog/) >> SpaceVim 中一键异步运行
|
||||
|
||||
|
||||
当编辑代码时,通常有这样的需求,即为快速运行当前文件。而 Vim 自带的 `:!` 命令可以用来执行外部命令。
|
||||
但是该方式执行外部命令时并不是异步的,会锁定当前编辑器,进而影响其他编辑操作。
|
||||
|
||||
以下动态图展示了如何在 SpaceVim 内通过异步代码运行器来快速运行当前文件。
|
||||
|
||||

|
||||
|
||||
在运行输出窗口最上方显示了编译、运行的实际命令,而最后一行则显示了运行结果。
|
||||
默认的快捷键为 `SPC l r`,`SPC` 指的是键盘上的空格键。
|
||||
|
@ -2,7 +2,7 @@
|
||||
title: "Use Vim as a Go IDE"
|
||||
categories: [tutorials, blog]
|
||||
image: https://user-images.githubusercontent.com/13142418/57321608-4a484880-7134-11e9-8e43-5fa05085d7e5.png
|
||||
excerpt: "A general guide for using SpaceVim as Go IDE, including layer configuration, requiems installation and usage."
|
||||
description: "A general guide for using SpaceVim as Go IDE, including layer configuration, requiems installation and usage."
|
||||
type: BlogPosting
|
||||
comments: true
|
||||
commentsID: "Use Vim as a Go IDE"
|
||||
|
@ -2,7 +2,7 @@
|
||||
title: "使用 Vim 搭建 Go 开发环境"
|
||||
categories: [tutorials_cn, blog_cn]
|
||||
image: https://user-images.githubusercontent.com/13142418/57321608-4a484880-7134-11e9-8e43-5fa05085d7e5.png
|
||||
excerpt: "这篇文章主要介绍如何使用 SpaceVim 搭建 Go 的开发环境,简介 lang#go 模块所支持的功能特性以及使用技巧"
|
||||
description: "这篇文章主要介绍如何使用 SpaceVim 搭建 Go 的开发环境,简介 lang#go 模块所支持的功能特性以及使用技巧"
|
||||
permalink: /cn/:title/
|
||||
lang: zh
|
||||
type: BlogPosting
|
||||
|
@ -2,7 +2,7 @@
|
||||
title: "Use Vim as a Lua IDE"
|
||||
categories: [tutorials, blog]
|
||||
image: https://user-images.githubusercontent.com/13142418/51436347-3502f780-1cc6-11e9-9ae1-02e1dfa1e165.png
|
||||
excerpt: "A general guide for using SpaceVim as Lua IDE, including layer configuration, requiems installation and usage."
|
||||
description: "A general guide for using SpaceVim as Lua IDE, including layer configuration, requiems installation and usage."
|
||||
type: BlogPosting
|
||||
comments: true
|
||||
commentsID: "Use Vim as a Lua IDE"
|
||||
|
@ -2,7 +2,7 @@
|
||||
title: "使用 Vim 搭建 Lua 开发环境"
|
||||
categories: [tutorials_cn, blog_cn]
|
||||
image: https://user-images.githubusercontent.com/13142418/51436347-3502f780-1cc6-11e9-9ae1-02e1dfa1e165.png
|
||||
excerpt: "这篇文章主要介绍如何使用 SpaceVim 搭建 Lua 的开发环境,简介 lang#lua 模块所支持的功能特性以及使用技巧"
|
||||
description: "这篇文章主要介绍如何使用 SpaceVim 搭建 Lua 的开发环境,简介 lang#lua 模块所支持的功能特性以及使用技巧"
|
||||
permalink: /cn/:title/
|
||||
lang: zh
|
||||
type: BlogPosting
|
||||
|
@ -2,7 +2,7 @@
|
||||
title: "使用 Vim 搭建 JavaScript 开发环境"
|
||||
categories: [tutorials_cn, blog_cn]
|
||||
image: https://user-images.githubusercontent.com/13142418/51976034-add03380-24be-11e9-84b5-245432e7f933.png
|
||||
excerpt: "这篇文章主要介绍如何使用 SpaceVim 搭建 JavaScript 的开发环境,简介 lang#javascript 模块所支持的功能特性以及使用技巧"
|
||||
description: "这篇文章主要介绍如何使用 SpaceVim 搭建 JavaScript 的开发环境,简介 lang#javascript 模块所支持的功能特性以及使用技巧"
|
||||
permalink: /cn/:title/
|
||||
lang: zh
|
||||
type: BlogPosting
|
||||
|
@ -2,7 +2,7 @@
|
||||
title: "Use Vim as a CoffeeScript IDE"
|
||||
categories: [tutorials, blog]
|
||||
image: https://user-images.githubusercontent.com/13142418/51876268-fe526e80-23a2-11e9-8964-01fd62392a1f.png
|
||||
excerpt: "A general guide for using SpaceVim as CoffeeScript IDE, including layer configuration, requiems installation and usage."
|
||||
description: "A general guide for using SpaceVim as CoffeeScript IDE, including layer configuration, requiems installation and usage."
|
||||
type: BlogPosting
|
||||
comments: true
|
||||
commentsID: "Use Vim as a CoffeeScript IDE"
|
||||
|
@ -2,7 +2,7 @@
|
||||
title: "使用 Vim 搭建 CoffeeScript 开发环境"
|
||||
categories: [tutorials_cn, blog_cn]
|
||||
image: https://user-images.githubusercontent.com/13142418/51876268-fe526e80-23a2-11e9-8964-01fd62392a1f.png
|
||||
excerpt: "这篇文章主要介绍如何使用 SpaceVim 搭建 CoffeeScript 的开发环境,简介 lang#coffeescript 模块所支持的功能特性以及使用技巧"
|
||||
description: "这篇文章主要介绍如何使用 SpaceVim 搭建 CoffeeScript 的开发环境,简介 lang#coffeescript 模块所支持的功能特性以及使用技巧"
|
||||
permalink: /cn/:title/
|
||||
lang: zh
|
||||
type: BlogPosting
|
||||
|
@ -2,7 +2,7 @@
|
||||
title: "Use Vim as a JavaScript IDE"
|
||||
categories: [tutorials, blog]
|
||||
image: https://user-images.githubusercontent.com/13142418/51976034-add03380-24be-11e9-84b5-245432e7f933.png
|
||||
excerpt: "A general guide for using SpaceVim as JavaScript IDE, including layer configuration, requiems installation and usage."
|
||||
description: "A general guide for using SpaceVim as JavaScript IDE, including layer configuration, requiems installation and usage."
|
||||
type: BlogPosting
|
||||
comments: true
|
||||
commentsID: "Use Vim as a JavaScript IDE"
|
||||
|
@ -2,7 +2,7 @@
|
||||
title: "使用 Vim 搭建 Perl 开发环境"
|
||||
categories: [tutorials_cn, blog_cn]
|
||||
image: https://user-images.githubusercontent.com/13142418/52611209-54550500-2ebf-11e9-9b9f-f697a0db52a3.png
|
||||
excerpt: "这篇文章主要介绍如何使用 SpaceVim 搭建 Perl 的开发环境,简介 lang#perl 模块所支持的功能特性以及使用技巧"
|
||||
description: "这篇文章主要介绍如何使用 SpaceVim 搭建 Perl 的开发环境,简介 lang#perl 模块所支持的功能特性以及使用技巧"
|
||||
permalink: /cn/:title/
|
||||
lang: zh
|
||||
type: BlogPosting
|
||||
|
@ -2,7 +2,7 @@
|
||||
title: "Use Vim as a Perl IDE"
|
||||
categories: [tutorials, blog]
|
||||
image: https://user-images.githubusercontent.com/13142418/52611209-54550500-2ebf-11e9-9b9f-f697a0db52a3.png
|
||||
excerpt: "A general guide for using SpaceVim as Perl IDE, including layer configuration, requiems installation and usage."
|
||||
description: "A general guide for using SpaceVim as Perl IDE, including layer configuration, requiems installation and usage."
|
||||
type: BlogPosting
|
||||
comments: true
|
||||
commentsID: "Use Vim as a Perl IDE"
|
||||
|
@ -2,7 +2,7 @@
|
||||
title: "使用 Vim 搭建 Ruby 开发环境"
|
||||
categories: [tutorials_cn, blog_cn]
|
||||
image: https://user-images.githubusercontent.com/13142418/53355518-20202080-3964-11e9-92f3-476060f2761e.png
|
||||
excerpt: "这篇文章主要介绍如何使用 SpaceVim 搭建 Ruby 的开发环境,简介 lang#ruby 模块所支持的功能特性以及使用技巧"
|
||||
description: "这篇文章主要介绍如何使用 SpaceVim 搭建 Ruby 的开发环境,简介 lang#ruby 模块所支持的功能特性以及使用技巧"
|
||||
permalink: /cn/:title/
|
||||
lang: zh
|
||||
type: BlogPosting
|
||||
|
@ -2,7 +2,7 @@
|
||||
title: "Use Vim as a Ruby IDE"
|
||||
categories: [tutorials, blog]
|
||||
image: https://user-images.githubusercontent.com/13142418/53355518-20202080-3964-11e9-92f3-476060f2761e.png
|
||||
excerpt: "A general guide for using SpaceVim as Ruby IDE, including layer configuration, requiems installation and usage."
|
||||
description: "A general guide for using SpaceVim as Ruby IDE, including layer configuration, requiems installation and usage."
|
||||
type: BlogPosting
|
||||
comments: true
|
||||
commentsID: "Use Vim as a Ruby IDE"
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: SpaceVim release v1.1.0
|
||||
categories: [changelog, blog]
|
||||
excerpt: "SpaceVim v1.1.0 introduced new floating window mapping guide, and a disk management for Windows, as well as improved the fzf layer."
|
||||
description: "SpaceVim v1.1.0 introduced new floating window mapping guide, and a disk management for Windows, as well as improved the fzf layer."
|
||||
type: NewsArticle
|
||||
image: https://user-images.githubusercontent.com/13142418/55619929-44c1b080-57cc-11e9-9c6a-8637555c2d6c.png
|
||||
commentsID: "SpaceVim release v1.1.0"
|
||||
|
@ -2,7 +2,7 @@
|
||||
title: "Use Vim as a PHP IDE"
|
||||
categories: [tutorials, blog]
|
||||
image: https://user-images.githubusercontent.com/13142418/57497567-c6948480-730a-11e9-95ec-e44bf6e79984.png
|
||||
excerpt: "A general guide for using SpaceVim as PHP IDE, including layer configuration, requiems installation and usage."
|
||||
description: "A general guide for using SpaceVim as PHP IDE, including layer configuration, requiems installation and usage."
|
||||
type: BlogPosting
|
||||
comments: true
|
||||
commentsID: "Use Vim as a PHP IDE"
|
||||
|
@ -2,7 +2,7 @@
|
||||
title: "使用 Vim 搭建 PHP 开发环境"
|
||||
categories: [tutorials_cn, blog_cn]
|
||||
image: https://user-images.githubusercontent.com/13142418/57497567-c6948480-730a-11e9-95ec-e44bf6e79984.png
|
||||
excerpt: "这篇文章主要介绍如何使用 SpaceVim 搭建 PHP 的开发环境,简介 lang#php 模块所支持的功能特性以及使用技巧"
|
||||
description: "这篇文章主要介绍如何使用 SpaceVim 搭建 PHP 的开发环境,简介 lang#php 模块所支持的功能特性以及使用技巧"
|
||||
permalink: /cn/:title/
|
||||
lang: zh
|
||||
type: BlogPosting
|
||||
|
@ -2,7 +2,7 @@
|
||||
title: "Use Vim as a C/C++ IDE"
|
||||
categories: [tutorials, blog]
|
||||
image: https://user-images.githubusercontent.com/13142418/58743787-db2bee80-846a-11e9-9b19-17202ac542c9.png
|
||||
excerpt: "A general guide for using SpaceVim as C/C++ IDE, including layer configuration, requiems installation and usage."
|
||||
description: "A general guide for using SpaceVim as C/C++ IDE, including layer configuration, requiems installation and usage."
|
||||
type: BlogPosting
|
||||
comments: true
|
||||
commentsID: "Use Vim as a C/C++ IDE"
|
||||
|
@ -2,7 +2,7 @@
|
||||
title: "使用 Vim 搭建 C/C++ 开发环境"
|
||||
categories: [tutorials_cn, blog_cn]
|
||||
image: https://user-images.githubusercontent.com/13142418/58743787-db2bee80-846a-11e9-9b19-17202ac542c9.png
|
||||
excerpt: "这篇文章主要介绍如何使用 SpaceVim 搭建 C/C++ 的开发环境,简介 lang#c 模块所支持的功能特性以及使用技巧"
|
||||
description: "这篇文章主要介绍如何使用 SpaceVim 搭建 C/C++ 的开发环境,简介 lang#c 模块所支持的功能特性以及使用技巧"
|
||||
permalink: /cn/:title/
|
||||
lang: zh
|
||||
type: BlogPosting
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: "异步待办事项管理器"
|
||||
categories: [feature_cn, blog_cn]
|
||||
excerpt: "通过异步检索展示整个项目中所有的待办事项,显示待办事项标签以及标题,同时支持跳转待办事项"
|
||||
description: "通过异步检索展示整个项目中所有的待办事项,显示待办事项标签以及标题,同时支持跳转待办事项"
|
||||
image: https://user-images.githubusercontent.com/13142418/35278709-7856ed62-0010-11e8-8b1e-e6cc6374b0dc.gif
|
||||
permalink: /cn/:title/
|
||||
lang: zh
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: "Asynchronous todo manager"
|
||||
categories: [feature, blog]
|
||||
excerpt: "Asynchronous todo manager for vim/neovim, show all todo tag and title within current project."
|
||||
description: "Asynchronous todo manager for vim/neovim, show all todo tag and title within current project."
|
||||
image: https://user-images.githubusercontent.com/13142418/35278709-7856ed62-0010-11e8-8b1e-e6cc6374b0dc.gif
|
||||
commentsID: "Asynchronous todo manager"
|
||||
comments: true
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: SpaceVim release v1.2.0
|
||||
categories: [changelog, blog]
|
||||
excerpt: "SpaceVim release v1.2.0 with 12 new programming language layers and ton of bug fixs and new features."
|
||||
description: "SpaceVim release v1.2.0 with 12 new programming language layers and ton of bug fixs and new features."
|
||||
type: NewsArticle
|
||||
image: https://user-images.githubusercontent.com/13142418/61462920-0bd9d000-a9a6-11e9-8e1f-c70d6ec6ca1e.png
|
||||
commentsID: "SpaceVim release v1.2.0"
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: SpaceVim release v1.3.0
|
||||
categories: [changelog, blog]
|
||||
excerpt: "SpaceVim release v1.3.0"
|
||||
description: "SpaceVim release v1.3.0"
|
||||
type: NewsArticle
|
||||
image: https://user-images.githubusercontent.com/13142418/68079142-904e4280-fe1f-11e9-993e-b834ea3d39ea.png
|
||||
commentsID: "SpaceVim release v1.3.0"
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: "自定义工程文件跳转"
|
||||
categories: [feature_cn, blog_cn]
|
||||
excerpt: "通过配置文件,自定义工程文件跳转路径,包括跳转至测试源文件、文档源文件等。"
|
||||
description: "通过配置文件,自定义工程文件跳转路径,包括跳转至测试源文件、文档源文件等。"
|
||||
image: https://user-images.githubusercontent.com/13142418/80495522-9d955580-899a-11ea-9e2e-b621b1d821d8.png
|
||||
permalink: /cn/:title/
|
||||
lang: zh
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: "Manage project alternate files"
|
||||
categories: [feature, blog]
|
||||
excerpt: "Manage the alternate file of current project within SpaceVim."
|
||||
description: "Manage the alternate file of current project within SpaceVim."
|
||||
image: https://user-images.githubusercontent.com/13142418/80495522-9d955580-899a-11ea-9e2e-b621b1d821d8.png
|
||||
commentsID: "Manage project alternate files"
|
||||
comments: true
|
||||
|
@ -2,7 +2,7 @@
|
||||
title: "Use Vim as a Rust IDE"
|
||||
categories: [tutorials, blog]
|
||||
image: https://user-images.githubusercontent.com/13142418/75607213-9afbb880-5b2f-11ea-8569-5f39142f134b.png
|
||||
excerpt: "A general guide for using SpaceVim as Rust IDE, including layer configuration, requiems installation and usage."
|
||||
description: "A general guide for using SpaceVim as Rust IDE, including layer configuration, requiems installation and usage."
|
||||
type: BlogPosting
|
||||
comments: true
|
||||
commentsID: "Use Vim as a Rust IDE"
|
||||
|
@ -1,155 +1,155 @@
|
||||
---
|
||||
title: "使用 Vim 搭建 Rust 开发环境"
|
||||
categories: [tutorials_cn, blog_cn]
|
||||
image: https://user-images.githubusercontent.com/13142418/75607213-9afbb880-5b2f-11ea-8569-5f39142f134b.png
|
||||
excerpt: "这篇文章主要介绍如何使用 SpaceVim 搭建 Rust 的开发环境,简介 lang#rust 模块所支持的功能特性以及使用技巧"
|
||||
permalink: /cn/:title/
|
||||
lang: zh
|
||||
type: BlogPosting
|
||||
comments: true
|
||||
commentsID: "使用 Vim 搭建 Rust 开发环境"
|
||||
---
|
||||
|
||||
# [Blogs](../blog/) >> 使用 Vim 搭建 Rust 开发环境
|
||||
|
||||
SpaceVim 是一个模块化的 Vim IDE,针对 Rust 这一语言的支持主要依靠 `lang#rust` 模块以及与之相关的其它模块。
|
||||
的这篇文章主要介绍如何使用 SpaceVim 搭建 Rust 的开发环境,侧重介绍跟 Rust 开发相关使用技巧。
|
||||
在阅读这篇文章之前,可以先阅读《[使用 Vim 搭建基础的开发环境](../use-vim-as-ide/)》,对语言相关以外的功能有一个大致的了解。
|
||||
|
||||
<!-- vim-markdown-toc GFM -->
|
||||
|
||||
- [安装模块](#安装模块)
|
||||
- [代码自动补全](#代码自动补全)
|
||||
- [语法检查](#语法检查)
|
||||
- [工程文件跳转](#工程文件跳转)
|
||||
- [代码格式化](#代码格式化)
|
||||
- [快速运行](#快速运行)
|
||||
- [交互式编程](#交互式编程)
|
||||
- [任务管理](#任务管理)
|
||||
|
||||
<!-- vim-markdown-toc -->
|
||||
|
||||
### 安装模块
|
||||
|
||||
SpaceVim 初次安装时默认并未启用相关语言模块。首先需要启用
|
||||
`lang#rust` 模块,通过快捷键 `SPC f v d` 打开配置文件,添加如下片断:
|
||||
|
||||
```toml
|
||||
[[layers]]
|
||||
name = "lang#rust"
|
||||
```
|
||||
|
||||
启用 `lang#rust` 模块后,在打开 Rust 文件时,就可以使用语言专属快捷键,这些快捷键都是以 `SPC l` 为前缀的。
|
||||
|
||||
### 代码自动补全
|
||||
|
||||
`autocomplete` 模块为 SpaceVim 提供了自动补全功能,目前针对 Rust 而言,比较好的补全方案是配合使用 lsp 模块:
|
||||
|
||||
```toml
|
||||
[[layers]]
|
||||
name = "lsp"
|
||||
```
|
||||
|
||||
lsp 模块默认使用 [rls](https://github.com/rust-lang/rls) 作为 Rust 的语言服务器后台命令,使用如下命令安装rls:
|
||||
|
||||
```sh
|
||||
rustup component add rls rust-analysis rust-src
|
||||
```
|
||||
|
||||
在配置文件中添加如下内容即可为 Rust 启用语言服务器:
|
||||
|
||||
```toml
|
||||
[[layers]]
|
||||
name = "lsp"
|
||||
filetypes = [
|
||||
"rust"
|
||||
]
|
||||
[layers.override_cmd]
|
||||
rust = ["rls"]
|
||||
```
|
||||
|
||||
### 语法检查
|
||||
|
||||
`checkers` 模块为 SpaceVim 提供了语法检查的功能,该模块默认已经载入。该模块默认使用 [neomake](https://github.com/neomake/neomake)
|
||||
这一异步语法检查工具。对于 Rust 的支持,是通过异步调用 rustc。
|
||||
|
||||
### 工程文件跳转
|
||||
|
||||
SpaceVim 自带工程管理插件,可以识别项目根目录,自动跳转 alternate 文件。需要在项目根目录添加工程文件 `.project_alt.json`:
|
||||
|
||||
```json
|
||||
{
|
||||
"src/*.rs": {"alternate": "test/{}.rs"},
|
||||
"test/*.rs": {"alternate": "src/{}.rs"}
|
||||
}
|
||||
```
|
||||
|
||||
通过以上的配置,就可以使用命令 `:A` 在源文件和测试文件之间进行跳转。
|
||||
|
||||
|
||||
### 代码格式化
|
||||
|
||||
Rust 代码格式化,主要依赖 `format` 模块,同时需要安装相关的后台命令 [rustfmt](https://github.com/rust-lang/rustfmt),
|
||||
默认快捷键为 `SPC b f` :
|
||||
|
||||
```toml
|
||||
[[layers]]
|
||||
name = "format"
|
||||
```
|
||||
|
||||
使用 rustup 安装 rustfmt:
|
||||
|
||||
```sh
|
||||
rustup component add rustfmt
|
||||
```
|
||||
|
||||
|
||||
### 快速运行
|
||||
|
||||
在编辑 Rust 文件时,可以快速运行当前文件,默认的快捷键是 `SPC l r` 。按下后,
|
||||
会在屏幕下方打开一个插件窗口,运行的结果会被展示在窗口内。于此同时,光标并不会跳到该插件窗口,避免影响编辑。在这里需要说明下,
|
||||
|
||||

|
||||
|
||||
### 交互式编程
|
||||
|
||||
在编辑 Rust 文件时,可通过快捷键 `SPC l s i` 启动 `evcxr` 交互窗口,
|
||||
之后使用快捷键将代码发送至解释器。默认快捷键都以 `SPC l s` 为前缀。
|
||||
|
||||

|
||||
|
||||
### 任务管理
|
||||
|
||||
任务管理器提供了相应的接口,可以根据实际情况自动添加 cargo 任务。比如,
|
||||
在启动函数内添加:
|
||||
|
||||
```viml
|
||||
function! s:cargo_task() abort
|
||||
if filereadable('Cargo.toml')
|
||||
let commands = ['build', 'run', 'test']
|
||||
let conf = {}
|
||||
for cmd in commands
|
||||
call extend(conf, {
|
||||
\ cmd : {
|
||||
\ 'command': 'cargo',
|
||||
\ 'args' : [cmd],
|
||||
\ 'isDetected' : 1,
|
||||
\ 'detectedName' : 'cargo:'
|
||||
\ }
|
||||
\ })
|
||||
endfor
|
||||
return conf
|
||||
else
|
||||
return {}
|
||||
endif
|
||||
endfunction
|
||||
call SpaceVim#plugins#tasks#reg_provider(funcref('s:cargo_task'))
|
||||
```
|
||||
|
||||
打开 rust 项目,按下快捷键`SPC p t r`即可看到如下任务列表。
|
||||
|
||||

|
||||
|
||||
执行效果如下:
|
||||
|
||||

|
||||
---
|
||||
title: "使用 Vim 搭建 Rust 开发环境"
|
||||
categories: [tutorials_cn, blog_cn]
|
||||
image: https://user-images.githubusercontent.com/13142418/75607213-9afbb880-5b2f-11ea-8569-5f39142f134b.png
|
||||
description: "这篇文章主要介绍如何使用 SpaceVim 搭建 Rust 的开发环境,简介 lang#rust 模块所支持的功能特性以及使用技巧"
|
||||
permalink: /cn/:title/
|
||||
lang: zh
|
||||
type: BlogPosting
|
||||
comments: true
|
||||
commentsID: "使用 Vim 搭建 Rust 开发环境"
|
||||
---
|
||||
|
||||
# [Blogs](../blog/) >> 使用 Vim 搭建 Rust 开发环境
|
||||
|
||||
SpaceVim 是一个模块化的 Vim IDE,针对 Rust 这一语言的支持主要依靠 `lang#rust` 模块以及与之相关的其它模块。
|
||||
的这篇文章主要介绍如何使用 SpaceVim 搭建 Rust 的开发环境,侧重介绍跟 Rust 开发相关使用技巧。
|
||||
在阅读这篇文章之前,可以先阅读《[使用 Vim 搭建基础的开发环境](../use-vim-as-ide/)》,对语言相关以外的功能有一个大致的了解。
|
||||
|
||||
<!-- vim-markdown-toc GFM -->
|
||||
|
||||
- [安装模块](#安装模块)
|
||||
- [代码自动补全](#代码自动补全)
|
||||
- [语法检查](#语法检查)
|
||||
- [工程文件跳转](#工程文件跳转)
|
||||
- [代码格式化](#代码格式化)
|
||||
- [快速运行](#快速运行)
|
||||
- [交互式编程](#交互式编程)
|
||||
- [任务管理](#任务管理)
|
||||
|
||||
<!-- vim-markdown-toc -->
|
||||
|
||||
### 安装模块
|
||||
|
||||
SpaceVim 初次安装时默认并未启用相关语言模块。首先需要启用
|
||||
`lang#rust` 模块,通过快捷键 `SPC f v d` 打开配置文件,添加如下片断:
|
||||
|
||||
```toml
|
||||
[[layers]]
|
||||
name = "lang#rust"
|
||||
```
|
||||
|
||||
启用 `lang#rust` 模块后,在打开 Rust 文件时,就可以使用语言专属快捷键,这些快捷键都是以 `SPC l` 为前缀的。
|
||||
|
||||
### 代码自动补全
|
||||
|
||||
`autocomplete` 模块为 SpaceVim 提供了自动补全功能,目前针对 Rust 而言,比较好的补全方案是配合使用 lsp 模块:
|
||||
|
||||
```toml
|
||||
[[layers]]
|
||||
name = "lsp"
|
||||
```
|
||||
|
||||
lsp 模块默认使用 [rls](https://github.com/rust-lang/rls) 作为 Rust 的语言服务器后台命令,使用如下命令安装rls:
|
||||
|
||||
```sh
|
||||
rustup component add rls rust-analysis rust-src
|
||||
```
|
||||
|
||||
在配置文件中添加如下内容即可为 Rust 启用语言服务器:
|
||||
|
||||
```toml
|
||||
[[layers]]
|
||||
name = "lsp"
|
||||
filetypes = [
|
||||
"rust"
|
||||
]
|
||||
[layers.override_cmd]
|
||||
rust = ["rls"]
|
||||
```
|
||||
|
||||
### 语法检查
|
||||
|
||||
`checkers` 模块为 SpaceVim 提供了语法检查的功能,该模块默认已经载入。该模块默认使用 [neomake](https://github.com/neomake/neomake)
|
||||
这一异步语法检查工具。对于 Rust 的支持,是通过异步调用 rustc。
|
||||
|
||||
### 工程文件跳转
|
||||
|
||||
SpaceVim 自带工程管理插件,可以识别项目根目录,自动跳转 alternate 文件。需要在项目根目录添加工程文件 `.project_alt.json`:
|
||||
|
||||
```json
|
||||
{
|
||||
"src/*.rs": {"alternate": "test/{}.rs"},
|
||||
"test/*.rs": {"alternate": "src/{}.rs"}
|
||||
}
|
||||
```
|
||||
|
||||
通过以上的配置,就可以使用命令 `:A` 在源文件和测试文件之间进行跳转。
|
||||
|
||||
|
||||
### 代码格式化
|
||||
|
||||
Rust 代码格式化,主要依赖 `format` 模块,同时需要安装相关的后台命令 [rustfmt](https://github.com/rust-lang/rustfmt),
|
||||
默认快捷键为 `SPC b f` :
|
||||
|
||||
```toml
|
||||
[[layers]]
|
||||
name = "format"
|
||||
```
|
||||
|
||||
使用 rustup 安装 rustfmt:
|
||||
|
||||
```sh
|
||||
rustup component add rustfmt
|
||||
```
|
||||
|
||||
|
||||
### 快速运行
|
||||
|
||||
在编辑 Rust 文件时,可以快速运行当前文件,默认的快捷键是 `SPC l r` 。按下后,
|
||||
会在屏幕下方打开一个插件窗口,运行的结果会被展示在窗口内。于此同时,光标并不会跳到该插件窗口,避免影响编辑。在这里需要说明下,
|
||||
|
||||

|
||||
|
||||
### 交互式编程
|
||||
|
||||
在编辑 Rust 文件时,可通过快捷键 `SPC l s i` 启动 `evcxr` 交互窗口,
|
||||
之后使用快捷键将代码发送至解释器。默认快捷键都以 `SPC l s` 为前缀。
|
||||
|
||||

|
||||
|
||||
### 任务管理
|
||||
|
||||
任务管理器提供了相应的接口,可以根据实际情况自动添加 cargo 任务。比如,
|
||||
在启动函数内添加:
|
||||
|
||||
```viml
|
||||
function! s:cargo_task() abort
|
||||
if filereadable('Cargo.toml')
|
||||
let commands = ['build', 'run', 'test']
|
||||
let conf = {}
|
||||
for cmd in commands
|
||||
call extend(conf, {
|
||||
\ cmd : {
|
||||
\ 'command': 'cargo',
|
||||
\ 'args' : [cmd],
|
||||
\ 'isDetected' : 1,
|
||||
\ 'detectedName' : 'cargo:'
|
||||
\ }
|
||||
\ })
|
||||
endfor
|
||||
return conf
|
||||
else
|
||||
return {}
|
||||
endif
|
||||
endfunction
|
||||
call SpaceVim#plugins#tasks#reg_provider(funcref('s:cargo_task'))
|
||||
```
|
||||
|
||||
打开 rust 项目,按下快捷键`SPC p t r`即可看到如下任务列表。
|
||||
|
||||

|
||||
|
||||
执行效果如下:
|
||||
|
||||

|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: SpaceVim release v1.4.0
|
||||
categories: [changelog, blog]
|
||||
excerpt: "SpaceVim release v1.4.0"
|
||||
description: "SpaceVim release v1.4.0"
|
||||
type: NewsArticle
|
||||
image: https://user-images.githubusercontent.com/13142418/80494420-3925c680-8999-11ea-9652-21e1e5564148.png
|
||||
commentsID: "SpaceVim release v1.4.0"
|
||||
|
@ -2,7 +2,7 @@
|
||||
title: "使用 Vim 搭建 TypeScript 开发环境"
|
||||
categories: [tutorials_cn, blog_cn]
|
||||
image: https://user-images.githubusercontent.com/13142418/79134364-2bd8db80-7de0-11ea-848e-71d3f07cb79d.png
|
||||
excerpt: "这篇文章主要介绍如何使用 SpaceVim 搭建 TypeScript 的开发环境,简介 lang#typescript 模块所支持的功能特性以及使用技巧"
|
||||
description: "这篇文章主要介绍如何使用 SpaceVim 搭建 TypeScript 的开发环境,简介 lang#typescript 模块所支持的功能特性以及使用技巧"
|
||||
permalink: /cn/:title/
|
||||
lang: zh
|
||||
type: BlogPosting
|
||||
|
@ -2,7 +2,7 @@
|
||||
title: "Use Vim as a TypeScript IDE"
|
||||
categories: [tutorials, blog]
|
||||
image: https://user-images.githubusercontent.com/13142418/79134364-2bd8db80-7de0-11ea-848e-71d3f07cb79d.png
|
||||
excerpt: "A general guide for using SpaceVim as TypeScript IDE, including layer configuration, requiems installation and usage."
|
||||
description: "A general guide for using SpaceVim as TypeScript IDE, including layer configuration, requiems installation and usage."
|
||||
type: BlogPosting
|
||||
comments: true
|
||||
commentsID: "Use Vim as a TypeScript IDE"
|
||||
|
@ -13,7 +13,7 @@ going on. Feel free to [feed this blog via RSS](../../feed.xml):
|
||||
<li>
|
||||
<h5><a href="{{ post.url }}">{{ post.title }}</a></h5>
|
||||
<span class="post-date">{{ post.date | date_to_string }}</span>
|
||||
<p>{{ post.excerpt | truncatewords: 100 }}</p>
|
||||
<p>{{ post.description | truncatewords: 100 }}</p>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
@ -14,7 +14,7 @@ SpaceVim 中文博客主要公布最新版本发布、新特性预览以及一
|
||||
<li>
|
||||
<h5><a href="{{ post.url }}">{{ post.title }}</a></h5>
|
||||
<span class="post-date">{{ post.date | date_to_string }}</span>
|
||||
<p>{{ post.excerpt | truncatewords: 100 }}</p>
|
||||
<p>{{ post.description | truncatewords: 100 }}</p>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
@ -314,7 +314,7 @@ markdown 语法如下:
|
||||
<li>
|
||||
<h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
|
||||
<span class="post-date">{{ post.date | date_to_string }}</span>
|
||||
<p>{{ post.excerpt | truncatewords: 100 }}</p>
|
||||
<p>{{ post.description | truncatewords: 100 }}</p>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
@ -23,8 +23,8 @@ layout: null
|
||||
{% else %}
|
||||
<dc:creator>{{ site.author.name | xml_escape }}</dc:creator>
|
||||
{% endif %}
|
||||
{% if post.excerpt %}
|
||||
<description>{{ post.excerpt | xml_escape }}</description>
|
||||
{% if post.description %}
|
||||
<description>{{ post.description | xml_escape }}</description>
|
||||
{% else %}
|
||||
<description>{{ post.content | xml_escape }}</description>
|
||||
{% endif %}
|
||||
|
@ -33,7 +33,7 @@ SpaceVim 是一个社区驱动的模块化的 Vim IDE,以模块的方式组织
|
||||
<strong><a href="{{ post.url }}">{{ post.title }}</a></strong>
|
||||
<br>
|
||||
<span class="post-date">{{ post.date | date_to_string }}</span>
|
||||
<p>{{ post.excerpt | truncatewords: 100 }}</p>
|
||||
<p>{{ post.description | truncatewords: 100 }}</p>
|
||||
<br>
|
||||
<img alt="{{ post.title }}" src="{{ post.image }}">
|
||||
{% endfor %}
|
||||
|
@ -328,7 +328,7 @@ markdown
|
||||
<li>
|
||||
<h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
|
||||
<span class="post-date">{{ post.date | date_to_string }}</span>
|
||||
<p>{{ post.excerpt | truncatewords: 100 }}</p>
|
||||
<p>{{ post.description | truncatewords: 100 }}</p>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
@ -23,8 +23,8 @@ layout: null
|
||||
{% else %}
|
||||
<dc:creator>{{ site.author.name | xml_escape }}</dc:creator>
|
||||
{% endif %}
|
||||
{% if post.excerpt %}
|
||||
<description>{{ post.excerpt | xml_escape }}</description>
|
||||
{% if post.description %}
|
||||
<description>{{ post.description | xml_escape }}</description>
|
||||
{% else %}
|
||||
<description>{{ post.content | xml_escape }}</description>
|
||||
{% endif %}
|
||||
|
@ -39,7 +39,7 @@ The last release is v1.4.0, check out [following-HEAD](https://github.com/SpaceV
|
||||
<strong><a href="{{ post.url }}">{{ post.title }}</a></strong>
|
||||
<br>
|
||||
<span class="post-date">{{ post.date | date_to_string }}</span>
|
||||
<p>{{ post.excerpt | truncatewords: 100 }}</p>
|
||||
<p>{{ post.description | truncatewords: 100 }}</p>
|
||||
<br>
|
||||
<img alt="{{ post.title }}" src="{{ post.image }}">
|
||||
{% endfor %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user