From 80bdc71c0ed44f63e0f2f45f8e264e2022cc6658 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Tue, 27 Nov 2018 21:10:47 +0200 Subject: syntax-highlighting: vim: Allow overriding shiftwidth and softtabstop The vim syntax indentation rules stored in indent/meson.vim set the local shiftwidth and softtabstop variables. As the file is loaded last, after ~/.vim/after/ftplugin/meson.vim (when present), this prevents overriding the default values for shiftwidth and softtabstop in a local configuration. Fix this by setting shiftwidth and softtabstop in ftplugin/meson.vim instead (as done by the python indentiation rules in upstream vim for instance) to allow local overrides. Signed-off-by: Laurent Pinchart --- data/syntax-highlighting/vim/README | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'data/syntax-highlighting/vim/README') diff --git a/data/syntax-highlighting/vim/README b/data/syntax-highlighting/vim/README index 1afa243e1..95188fcc7 100644 --- a/data/syntax-highlighting/vim/README +++ b/data/syntax-highlighting/vim/README @@ -1,3 +1,4 @@ ftdetect sets the filetype +ftplugin sets Meson indentation rules +indent does Meson indentation syntax does Meson syntax highlighting -plugin does Meson indentation -- cgit v1.2.3