diff options
author | Colin Caine <complaints@cmcaine.co.uk> | 2024-04-18 23:53:02 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-04-18 23:53:02 +0200 |
commit | 4b3fab14dbde971f15d8783e9ef125b19fdbc829 (patch) | |
tree | 54c899ae29ed12ca8ddbbd4b235faa4599dc4534 /runtime/filetype.vim | |
parent | 36e667ab837cd27b8c0c9df5c2db8008b2e1b76c (diff) |
patch 9.1.0354: runtime(uci): No support for uci file typesv9.1.0354
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>
Diffstat (limited to 'runtime/filetype.vim')
-rw-r--r-- | runtime/filetype.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 4a877f7f84..c7fc331963 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -3030,6 +3030,12 @@ au BufNewFile,BufRead {.,}tmux*.conf* setf tmux " Universal Scene Description au BufNewFile,BufRead *.usda,*.usd setf usd +" UCI +" UCI files are normally in /etc/config, but that might be mounted over sshfs or similar, so we match more loosely. +" There was some concern[1] that this pattern would match too much, so now we check the file content as well. +" [1]: https://github.com/vim/vim/pull/14385#discussion_r1558878741 +au BufNewFile,BufRead */etc/config/* if dist#ft#Detect_UCI_statements() | call s:StarSetf('uci') | endif + " VHDL au BufNewFile,BufRead *.vhdl_[0-9]* call s:StarSetf('vhdl') |