Skip to content

Eothred/cmake.vim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CMake Project Support in Vim

CMake is the ONLY way you should be building your C or C++ projects. Vim is the ultimate text editor. Together, along with the power of gray skull, CMake support in Vim is born.


cmake.vim v0.1.9-1 is a Vim plugin that allows you to build your projects that are based on the CMake meta-build system.

If lost, run :help cmake for more information.

Requirements

At the time of writing, cmake.vim has been tested with Vim 7.3+ in nocp mode and CMake 2.8.

Installing

I recommending using Vundle to install plugins. The line necessary to add this plugin is as follows:

Bundle 'jalcine/cmake.vim`

Getting Started

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.

Commands

cmake.vim defines a few methods for generic interaction with CMake. Check out :help cmake-methods for more information.

Options

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 out :help cmake-options for more information.

Known Issues

  • You can't pass in options for configuring the project at first-run (or later on, actually).

License

This code is released and available under the MIT license. Multiply and be fruitful.

Author

I'm Jacky Alcine and I like code. A lot. I also chat a lot like a firehose so follow with caution!

About

Incorporates the functionality of CMake into Vim.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vim Script 100.0%