# HG changeset patch # User Christian Brabandt # Date 1712862003 -7200 # Node ID a3b37b1cae3a3ceafe2a648be46c01c3003be4ab # Parent 6a85ec31813a76149f971652876799cda6d3dd20 patch 9.1.0306: filetype: x11vnc config file is not recognized Commit: https://github.com/vim/vim/commit/58ce78ad438deefec54fd6206166ca2794cd6efe Author: Wu, Zhenyu Date: Thu Apr 11 20:47:45 2024 +0200 patch 9.1.0306: filetype: x11vnc config file is not recognized Problem: filetype: x11vnc config file is not recognized Solution: Detect '.x11vncrc' as conf filetype (Wu, Zhenyu) See: https://linux.die.net/man/1/x11vnc closes: #14511 Signed-off-by: Wu, Zhenyu Signed-off-by: Christian Brabandt diff --git a/runtime/filetype.vim b/runtime/filetype.vim --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -2615,6 +2615,9 @@ au BufNewFile,BufRead *.ws[fc] setf ws " XHTML au BufNewFile,BufRead *.xhtml,*.xht setf xhtml +" X11vnc +au BufNewFile,BufRead .x11vncrc setf conf + " X Pixmap (dynamically sets colors, this used to trigger on BufEnter to make " it work better, but that breaks setting 'filetype' manually) au BufNewFile,BufRead *.xpm 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 @@ -162,7 +162,7 @@ def s:GetFilenameChecks(): dict