mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 06:20:05 +08:00
17 lines
893 B
Markdown
17 lines
893 B
Markdown
---
|
|
title: "An async code runner in SpaceVim"
|
|
categories: tutorials
|
|
excerpt: "A better way for running code with in vim, more info about the command status, will not move cursor from code buffer."
|
|
comments: true
|
|
---
|
|
|
|
# [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.
|
|
|
|
![async code runner](https://user-images.githubusercontent.com/13142418/33722240-141ed716-db2f-11e7-9a4d-c99f05cc1d05.gif)
|
|
|
|
as wrote in old blog, we can also use this feature for java, c, php, JavaScript, etc.
|