Back to Spacevim

SpaceVim lang#nim layer

docs/layers/lang/nim.md

2.4.01.6 KB
Original Source

Available Layers >> lang#nim

<!-- vim-markdown-toc GFM --> <!-- vim-markdown-toc -->

Description

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

Features

  • syntax highlighting
  • code completion
  • code compiler and runner

Install

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

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

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

sh
sudo pacman -S nim nimble

Key bindings

Key BindingsDescriptions
SPC l rcompile and run the current file
SPC l erename symbol in file
SPC l Erename 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 BindingsDescriptions
SPC l s bsend buffer and keep code buffer focused
SPC l s lsend line and keep code buffer focused
SPC l s ssend 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