From: Samir Benmendil Date: Sun, 14 May 2017 19:58:35 +0000 (+0100) Subject: vim: indent/cmake only reindent when entering last char X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/226e76d4d040a52d159bc77bc4f3905352f04991 vim: indent/cmake only reindent when entering last char --- 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")