Vim syntax highlighting rules for modern CMake.
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 54 commits ahead, 2 commits behind nickhutchinson:master.


Vim syntax highlighting rules for modern CMakeLists.txt.

Original code from KitWare. First hosted on Github by Nicholas Hutchinson. Extended and modified by Patrick Boettcher and contributors

Keyword update - refer to syntax/cmake.vim-header.

The code of this repository is integrated in and released with CMake and is pulled into the official cmake-distribution "from time to time".


With Pathogen

cd ~/.vim/bundle
git clone git://

With Vundle

" inside .vimrc
Plugin 'pboettch/vim-cmake-syntax'


There is a ever growing test-suite based on ctest located in test/

cd <build-dir-where-ever-located>
cmake path/to/this/repo/test