From 226e76d4d040a52d159bc77bc4f3905352f04991 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sun, 14 May 2017 20:58:35 +0100 Subject: [PATCH] vim: indent/cmake only reindent when entering last char --- vim/indent/cmake.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim/indent/cmake.vim b/vim/indent/cmake.vim index c6f8974..854e3cb 100644 --- a/vim/indent/cmake.vim +++ b/vim/indent/cmake.vim @@ -17,7 +17,7 @@ endif let b:did_indent = 1 setlocal indentexpr=CMakeGetIndent(v:lnum) -setlocal indentkeys+==ENDIF(,ENDFOREACH(,ENDMACRO(,ELSE(,ELSEIF(,ENDWHILE( +setlocal indentkeys+=0=~ENDIF(,0=~ENDFOREACH(,0=~ENDMACRO(,0=~ELSE(,0=~ELSEIF(,0=~ENDWHILE( " Only define the function once. if exists("*CMakeGetIndent") -- 2.48.1