[CMake] cmake-indent.vim

Andy Cedilnik andy.cedilnik at kitware.com
Wed Jul 26 16:00:33 EDT 2006


Hi Andi,

I thought the cmake-indent.vim is only read if it is a CMake file. Can 
you propose a fix? Patch would be nice.

Thank you.

       Andy

Andreas Beckermann wrote:
> 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
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>   


-- 
Andy Cedilnik
Kitware Inc.



More information about the CMake mailing list