v0.2.0 is a Vim
plugin that allows you to build your projects that are based on the CMake
If lost, run
:help cmake for a bit of guidance.
At the time of writing,
cmake.vim has been tested with Vim 7.3+ in nocp mode
and CMake 2.8.
I recommending using Vundle to install plugins. The line necessary to add this plugin is as follows:
After you installed the plugin, just
cd into the directory where the
top-level CMakeLists.txt can be found and run:
:CMakeCreateProject <build-dir-name> :CMakeBuild
With that, you created (or re-configured in a vanilla-setup) a new binary directory and built the project.
cmake.vim defines a few methods for generic interaction with CMake. Check
:help cmake-methods for more information.
In order for CMake to operate, it has to know where the build directory is
located. This is done automatically by the plugin but it does need help in the
event that you happen to build your CMake project in a sub-directory. Check
:help cmake-options for more information.
:help cmake-integrations][doc/cmake.txt] for tips on integrations
other plug-ins like
- You can't pass in options for configuring the project at first-run (or
later on, actually). At the moment, you can obtain values from the cache
:CMakeBuildTargetthat'd build the target provided. If a file is to be provided, find the target for that file and build the target it belongs to (restricted to source files).
- Also for
:CMakeCleanTargetsince we can determine pre-target cleaning information.
- Also for
- Improve integration's use flag lookup and discovery on a per-target basis and a per-file basis (restricted to source files).
- Pass an argument string to
- Allow setting and getting values using
cmake.vim's buffer commands only in
This code is released and available under the MIT license. Multiply and be fruitful.
I'm Jacky Alcine and I like code. A lot. I also chat a lot like a firehose so follow with caution!