[CMake] cmake-indent.vim

Andreas Beckermann b_mann at gmx.de
Wed Jul 26 15:02:59 EDT 2006


Hi
there is a line in cmake-indent.vim that makes my vim very uncomfortable to 
use:
  setlocal indentexpr=CMakeGetIndent(v:lnum)
this line is executed pretty much unconditionally, and thus even for *.cpp 
files. However CMakeGetIndent() doesn't work properly for them.

Would it be possible to execute that line if (and only if) a cmake file is 
being edited?

CU
Andi



More information about the CMake mailing list