From 5f931997359a539f2c9ed3c3b68aef41c13875ee Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Wed, 24 Jul 2019 13:52:55 +0100 Subject: [PATCH] Improve the list of indent keys for cmake filetype --- after/ftplugin/cmake.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/after/ftplugin/cmake.vim b/after/ftplugin/cmake.vim index 8f9a022..659956f 100644 --- a/after/ftplugin/cmake.vim +++ b/after/ftplugin/cmake.vim @@ -6,6 +6,9 @@ setlocal foldmethod=syntax " Set comment string setlocal commentstring=#%s +" setlocal indentkeys=0{,0},:,0#,!^F,o,O,e,=ENDIF(,ENDFOREACH(,ENDMACRO(,ELSE(,ELSEIF(,ENDWHILE( +setlocal indentkeys=:,!^F,o,O,e,=endif(,=ENDIF(,endforeach(,ENDFOREACH(,endmacro(,ENDMACRO(,else(,ELSE(,elseif(,ELSEIF(,endwhile(,ENDWHILE( + " Custon surround for creating a CMake variable from a text object. " "ys{motion}v" makes a variable out of "text-obj" -> "${text-obj}" let b:surround_{char2nr("v")} = "${\r}"