From 6512478d2f18242b59adb96b88390038fbe25b46 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Wed, 29 Sep 2021 11:57:34 -0400 Subject: syntax-highlighting: vim: set b:undo_indent The b:undo_indent variable gets executed to undo the effects of the options set earlier in the file. Signed-off-by: Doug Kearns Signed-off-by: Liam Beguin --- data/syntax-highlighting/vim/indent/meson.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/data/syntax-highlighting/vim/indent/meson.vim b/data/syntax-highlighting/vim/indent/meson.vim index ec0cbb4..57bea13 100644 --- a/data/syntax-highlighting/vim/indent/meson.vim +++ b/data/syntax-highlighting/vim/indent/meson.vim @@ -20,6 +20,8 @@ setlocal autoindent " indentexpr isn't much help otherwise setlocal indentexpr=GetMesonIndent(v:lnum) setlocal indentkeys+==elif,=else,=endforeach,=endif,0) +let b:undo_indent = "setl ai< inde< indk< lisp<" + " Only define the function once. if exists("*GetMesonIndent") finish -- cgit v1.1