SpaceVim

A community-driven vim distribution


Home | About | Quick start guide | Documentation | Development | Community | Sponsors


Available Layers » lang#nim

Description

This layer adds Nim language support to SpaceVim. Nim is a compiled, garbage-collected systems programming language.

Features

Install

To use this configuration layer, update your custom configuration file with:

[[layers]]
  name = "lang#nim"

Before using this layer, you need to install Nim via a package manager. For example in archlinux:

sudo pacman -S nim nimble

Key bindings

Key Bindings Descriptions
SPC l r compile and run the current file
SPC l e rename symbol in file
SPC l E rename symbol in project

Inferior REPL process

Start a nim secret inferior REPL process with SPC l s i.

Send code to inferior process commands:

Key Bindings Descriptions
SPC l s b send buffer and keep code buffer focused
SPC l s l send line and keep code buffer focused
SPC l s s send selection text and keep code buffer focused

Examples

This is an Nim example project which is developed in SpaceVim.

https://github.com/wsdjeg/nim-example

Powered by Jekyll, Help improve this page