[Cmake] Authoring CMake files with VIM

Andy Cedilnik andy.cedilnik at kitware.com
Mon Mar 24 13:58:29 EST 2003


Hi All,

Just wanted to let you know that I wrote initial implementation of
syntax highlighting and indentation of CMake files for VIM. They can be
downloaded from: http://www.vim.org/scripts/index.php

To install them, download indent one and put it to:
~/.vim/indent/cmake.vim (or $HOME/_vim/indent/cmake.vim on Windows) 
and syntax:
~/.vim/syntax/cmake.vim (or $HOME/_vim/syntax/cmake.vim on Windows) 

Then specify in your vimrc:

:autocmd BufRead,BufNewFile *.cmake,CMakeLists.txt setf cmake
:autocmd BufRead,BufNewFile *.cmake,CMakeLists.txt runtime!
indent/cmake.vim

If you find problems with these scripts, please send me e-mail.

Thank you.

			Andy






More information about the CMake mailing list