# HG changeset patch # User Christian Brabandt # Date 1698082206 -7200 # Node ID 2d48081760a047d1eb0b9a432071d9dd92616c07 # Parent be8288cd65486b7e2859c5d741a50456249f14a5 patch 9.0.2061: not able to detect xkb filetypes Commit: https://github.com/vim/vim/commit/ae9021a840db3253b0e0cb84186faae73368afd7 Author: Guido Cella Date: Mon Oct 23 19:19:46 2023 +0200 patch 9.0.2061: not able to detect xkb filetypes Problem: not able to detect xkb filetypes Solution: Detect files below /u/s/X11/xkb as xkb files (without adding an extra filetype) Those files are used from the X11 xkb extension closes: #13401 Signed-off-by: Christian Brabandt Co-authored-by: Guido Cella diff --git a/runtime/filetype.vim b/runtime/filetype.vim --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -2862,6 +2862,9 @@ au BufNewFile,BufRead XF86Config* \|endif \|call s:StarSetf('xf86conf') +" XKB +au BufNewFile,BufRead */usr/share/X11/xkb/{compat,geometry,keycodes,symbols,types}/* call s:StarSetf('xkb') + " X11 xmodmap au BufNewFile,BufRead *xmodmap* call s:StarSetf('xmodmap') diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -800,6 +800,7 @@ def s:GetFilenameChecks(): dict