1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 05:30:07 +08:00
SpaceVim/docs/_posts/2017-12-07-async-code-runner-in-SpaceVim.md

18 lines
920 B
Markdown
Raw Normal View History

2017-12-07 23:19:13 +08:00
---
title: "An async code runner in SpaceVim"
2018-05-27 20:54:33 +08:00
categories: blog
2017-12-07 23:19:13 +08:00
excerpt: "A better way for running code with in vim, more info about the command status, will not move cursor from code buffer."
2018-07-05 16:22:44 +08:00
commentsID: "Async code runner"
2018-01-25 22:57:56 +08:00
comments: true
2017-12-07 23:19:13 +08:00
---
# [Blogs](https://spacevim.org/community#blogs) > An async code runner in SpaceVim
when edit code, sometimes I want run current file. as we know vim's build-in feature `:!`, but it is not running asynchronously.
here is an gif shown how we can run code within SpaceVim. the first line is showing the command, the last line is showing the exit code and the time that has been consumed. the default key binding is `SPC l r`, `SPC` means `<Space>` on your keyboard.
2020-04-29 23:32:26 +08:00
![async code runner](https://user-images.githubusercontent.com/13142418/80607131-b9b2f880-8a67-11ea-84ad-047ed8dd18b1.gif)
2017-12-07 23:19:13 +08:00
as wrote in old blog, we can also use this feature for java, c, php, JavaScript, etc.