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>
This commit is contained in:
Konfekt
2024-10-05 17:26:46 +02:00
committed by Christian Brabandt
parent 89872f58a9
commit 7c3f9af0ed
8 changed files with 43 additions and 19 deletions

View File

@ -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 @@ setlocal formatoptions-=t formatoptions+=croql
" 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