diff --git a/after/ftplugin/cmake.vim b/after/ftplugin/cmake.vim new file mode 100644 index 0000000..d095db6 --- /dev/null +++ b/after/ftplugin/cmake.vim @@ -0,0 +1,11 @@ +scriptencoding utf-8 + +if exists('b:loaded_cmake_plugin') + finish +endif +let b:loaded_cmake_plugin = 1 + +let b:endwise_addition = '\=submatch(0) ==# toupper(submatch(0)) ? "END" . submatch(0) . "()" : "end" . submatch(0) . "()"' +let b:endwise_words = 'foreach,function,if,macro,while' +let b:endwise_pattern = '\%(\.*\)\@' +let b:endwise_syngroups = 'cmakeStatement,cmakeCommandConditional,cmakeCommandRepeat,cmakeCommand'