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
[email protected]
http://www.cmake.org/mailman/listinfo/cmake


--
Andy Cedilnik
Kitware Inc.

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to