runtime(misc): unset compiler in various ftplugins
just to foster best practices
closes: #15798
Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/runtime/ftplugin/yaml.vim b/runtime/ftplugin/yaml.vim
index 8bfc45e..4e12350 100644
--- a/runtime/ftplugin/yaml.vim
+++ b/runtime/ftplugin/yaml.vim
@@ -1,7 +1,7 @@
" Vim filetype plugin file
" Language: YAML (YAML Ain't Markup Language)
" Previous Maintainer: Nikolai Weibull <now@bitwi.se> (inactive)
-" Last Change: 2020 Mar 02
+" Last Change: 2024 Oct 04
if exists("b:did_ftplugin")
finish
@@ -18,7 +18,10 @@
" rime input method engine uses `*.custom.yaml` as its config files
if expand('%:r:e') ==# 'custom'
- compiler rime_deployer
+ if !exists('current_compiler')
+ compiler rime_deployer
+ let b:undo_ftplugin ..= "| compiler make"
+ endif
setlocal include=__include:\\s*
let b:undo_ftplugin ..= " inc<"
endif