codekingpro/portable-devtools
114k
1" Vim filetype plugin file2" Language: YAML (YAML Ain't Markup Language)3" Previous Maintainer: Nikolai Weibull <now@bitwi.se> (inactive)4" Last Change: 2024 Oct 045" 2025 Apr 22 by Vim project re-order b:undo_ftplugin (#17179)6 7if exists("b:did_ftplugin")8 finish9endif10let b:did_ftplugin = 111 12let s:cpo_save = &cpo13set cpo&vim14 15let b:undo_ftplugin = "setl com< cms< et< fo<"16 17setlocal comments=:# commentstring=#\ %s expandtab18setlocal formatoptions-=t formatoptions+=croql19 20if get(g:, "yaml_recommended_style",1)21 let b:undo_ftplugin ..= " sw< sts<"22 setlocal shiftwidth=2 softtabstop=223endif24 25" rime input method engine(https://rime.im/)26" uses `*.custom.yaml` as its config files27if expand('%:r:e') ==# 'custom'28 " `__include` command in `*.custom.yaml`29 " see: https://github.com/rime/home/wiki/Configuration#%E5%8C%85%E5%90%AB30 setlocal include=__include:\\s*31 let b:undo_ftplugin ..= " inc<"32 33 if !exists('current_compiler')34 compiler rime_deployer35 let b:undo_ftplugin ..= " | compiler make"36 endif37endif38 39 40let &cpo = s:cpo_save41unlet s:cpo_save42 