diff runtime/filetype.vim @ 34844:810cfae88ac7 v9.1.0291

patch 9.1.0291: filetype: libreoffice config files are not recognized Commit: https://github.com/vim/vim/commit/73c89bcf79df280b8698f77374afabd9494dc741 Author: Wu, Zhenyu <wuzhenyu@ustc.edu> Date: Tue Apr 9 22:20:55 2024 +0200 patch 9.1.0291: filetype: libreoffice config files are not recognized Problem: filetype: libreoffice config files are not recognized Solution: Detect Libreoffice config fils as xml/dosini (Wu, Zhenyu) closes: #14453 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Tue, 09 Apr 2024 22:30:04 +0200
parents 87c0152e321c
children 34564bd8093f
line wrap: on
line diff
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -514,6 +514,10 @@ au BufNewFile,BufRead s6-*              
 " Fontconfig config files
 au BufNewFile,BufRead fonts.conf			setf xml
 
+" Libreoffice config files
+au BufNewFile,BufRead *.xcu,*.xlb,*.xlc,*.xba		setf xml
+au BufNewFile,BufRead psprint.conf,sofficerc		setf dosini
+
 " Lynx config files
 au BufNewFile,BufRead lynx.cfg			setf lynx