summaryrefslogtreecommitdiffstats
path: root/runtime/filetype.vim
diff options
context:
space:
mode:
authorGuido Cella <guido@guidocella.xyz>2023-10-23 19:19:46 +0200
committerChristian Brabandt <cb@256bit.org>2023-10-23 19:19:46 +0200
commitae9021a840db3253b0e0cb84186faae73368afd7 (patch)
treec6f3f3f4aad65474b1258029a68f3eab4b09c751 /runtime/filetype.vim
parent84394f2be4a750f1e26b478e36de041663f4b5a4 (diff)
patch 9.0.2061: not able to detect xkb filetypesv9.0.2061
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 <cb@256bit.org> Co-authored-by: Guido Cella <guido@guidocella.xyz>
Diffstat (limited to 'runtime/filetype.vim')
-rw-r--r--runtime/filetype.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 6fef4b77a7..07d6bbfca1 100644
--- 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')