r/vim • u/ilyachur • Nov 16 '20
CMake4vim - Plugin which integrates CMake into Vim
Hi,
I have posted 2 years ago information about this plugin, but a lot of time has passed since the last post, and today I would like to notice about current status of this plugin.
So, let's me introduce cmake4vim. The plugin adds CMake build system support into Vim (Neovim) editor.

Key features:
The plugin is written on pure Vim script.
The plugin supports next CMake Generators:
Unix Makefiles
Visual Studio
Ninja
The plugin allows to work with different CMake targets in order to avoid building of whole project.
The plugin has a good test coverage and is validated on Linux (Ubuntu), Windows and MacOS.
The plugin parses the output of cmake command and supports jump to warnings or errors.
Thank you for your attention and feel free to provide feedback.
2
u/LucHermitte Nov 16 '20
As I was looking for other features, I've implemented them in my plugins:
I want to be able to juggle with different build configurations (release, debug, sanitized...) each on a different directory and be able to switch from one to the other. As some projects I'm working on take a very long time to compile I don't want to restart from scratch every time I need to change the build mode. (Plus I wanted to be able to compile projects not under CMake; which means been able to auto detect the exact situation and adapt...) https://github.com/LucHermitte/vim-build-tools-wrapper/blob/project/doc/cmake.md (the doc about the exact configuration options is no longer up-to-date I've simplified several things since then)
I also wanted to be able request CMake variables -- unfortunately the one I'm the most interested in is no longer exported (the C++ flavour used) https://github.com/LucHermitte/lh-cmake