Home

Awesome

lh-cmake : A CMake plugin for vim

This plugin provides a few utilities for working on CMake projects from vim.

Features

Obtain current project configuration as it's known by CMake

This plugin can analyze the current CMakeCache.txt (see lh#btw#compilation_dir()) and report miscellaneous information:

It also provides a :CMake command that takes different parameters:

CMake dictionary

lh-cmake provides (an extremly incomplete) dictionary of CMake keywords, variables, ... that can be used to help Vim complete in CMake files.

Installation

This plugin will best installed with Vim-Addon-Manager as it will also install dependencies (lh-vim-lib).

By the mean time, you can clone this repositoriy and lh-vim-lib and install them manually or with your prefered plugin manager.

Configuration

This plugin needs the variable (bpg):BTW.compilation_dir to be set to the directory where ccmake has been executed. Having this variable set and up-to-date can be automated thanks to BuildToolsWrapper and local_vimrc. More on the subject latter.

Project Stats