comparison runtime/filetype.vim @ 34998:f4511bd98310 v9.1.0354

patch 9.1.0354: runtime(uci): No support for uci file types Commit: https://github.com/vim/vim/commit/4b3fab14dbde971f15d8783e9ef125b19fdbc829 Author: Colin Caine <complaints@cmcaine.co.uk> Date: Thu Apr 18 23:53:02 2024 +0200 patch 9.1.0354: runtime(uci): No support for uci file types Problem: runtime(uci): No support for uci file types (Wu, Zhenyu) Solution: include basic uci ftplugin and syntax plugins (Colin Caine) closes: #14575 Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Colin Caine <complaints@cmcaine.co.uk> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Fri, 19 Apr 2024 00:00:03 +0200
parents 84bd7cb1251d
children 0a61dc6391d8
comparison
equal deleted inserted replaced
34997:6130f51d7db3 34998:f4511bd98310
3028 au BufNewFile,BufRead {.,}tmux*.conf* setf tmux 3028 au BufNewFile,BufRead {.,}tmux*.conf* setf tmux
3029 3029
3030 " Universal Scene Description 3030 " Universal Scene Description
3031 au BufNewFile,BufRead *.usda,*.usd setf usd 3031 au BufNewFile,BufRead *.usda,*.usd setf usd
3032 3032
3033 " UCI
3034 " UCI files are normally in /etc/config, but that might be mounted over sshfs or similar, so we match more loosely.
3035 " There was some concern[1] that this pattern would match too much, so now we check the file content as well.
3036 " [1]: https://github.com/vim/vim/pull/14385#discussion_r1558878741
3037 au BufNewFile,BufRead */etc/config/* if dist#ft#Detect_UCI_statements() | call s:StarSetf('uci') | endif
3038
3033 " VHDL 3039 " VHDL
3034 au BufNewFile,BufRead *.vhdl_[0-9]* call s:StarSetf('vhdl') 3040 au BufNewFile,BufRead *.vhdl_[0-9]* call s:StarSetf('vhdl')
3035 3041
3036 " Vim script 3042 " Vim script
3037 au BufNewFile,BufRead *vimrc* call s:StarSetf('vim') 3043 au BufNewFile,BufRead *vimrc* call s:StarSetf('vim')