aboutsummaryrefslogtreecommitdiff
path: root/data/syntax-highlighting/vim
diff options
context:
space:
mode:
authorDoug Kearns <dougkearns@gmail.com>2021-09-29 11:57:34 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2021-09-30 00:26:25 +0300
commit6512478d2f18242b59adb96b88390038fbe25b46 (patch)
treeb4936b12141bae7a3ac014d63d1f4d8d642ff767 /data/syntax-highlighting/vim
parent65b144bc85473d0d31e42aa57a05ed725b60d621 (diff)
downloadmeson-6512478d2f18242b59adb96b88390038fbe25b46.zip
meson-6512478d2f18242b59adb96b88390038fbe25b46.tar.gz
meson-6512478d2f18242b59adb96b88390038fbe25b46.tar.bz2
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 <dougkearns@gmail.com> Signed-off-by: Liam Beguin <liambeguin@gmail.com>
Diffstat (limited to 'data/syntax-highlighting/vim')
-rw-r--r--data/syntax-highlighting/vim/indent/meson.vim2
1 files changed, 2 insertions, 0 deletions
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