sponsor Vim development Vim logo Vim Book Ad

cmake.vim : CMake indent file

 script karma  Rating 17/7, Downloaded by 1765  Comments, bugs, improvements  Vim wiki

created by
Andy Cedilnik
 
script type
indent
 
description
A CMake (www.cmake.org) indentation mode, which indents IF()/ELSE()/ENDIF(), FOREACH()/ENDFOREACH(), and MACRO()/ENDMACRO(), and it also supports multiline arguments to commands, quoted and non-quoted arguments.
 
install details
1. Put in indent/ subdirectory (for example: ~/.vim/indent)
2. load it when loading CMakeLists.txt or *.cmake:
:autocmd BufRead,BufNewFile *.cmake,CMakeLists.txt runtime! indent/cmake.vim
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
cmake-indent.vim 1.4 2006-04-19 6.0 Andy Cedilnik More cleanups before VIM 7.0
cmake.vim 0.2 2003-06-19 6.0 Andy Cedilnik Lots of changes here. Now it can handle all CMake files I can find on my disk. This one also uses same logic as the emacs file in the CMake repository.
cmake.vim 0.1 2003-03-24 6.0 Andy Cedilnik Initial upload
ip used for rating: 18.224.149.242

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github