Fork me on GitHub

SpaceVim

A community-driven vim distribution


Home | About | Documentation | Development | Community | Sponsors


Layers > lang#c

Description

lang#c layer provides c/c++/object-c language support for SpaceVim.

Install

To use this configuration layer, add call SpaceVim#layers#load('lang#c') to your custom configuration file.

Features

Configuration

set the path to the clang executable

The libclang shared object (dynamic library) file path. by default it is empty.

{
    "c": "c11",
    "cpp": "c++1z",
    "objc": "c11",
    "objcpp": "c++1z",
}

Create a .clang file at your project root. You should be able to just paste most of your compile flags in there. You can also use a list [‘-Iwhatever’, …] when loadding this layer.

Key bindings

key binding description
SPC l r compile and run current file

Hosted on GitHub, Help improve this page — Theme by mattgraham,