patch 9.1.1718: filetype: kubectl config file is not recognized Commit: https://github.com/vim/vim/commit/6cd6857cbe671ff8bc4e057b528d37795e1b5c2a Author: Volodymyr Chernetskyi <19735328+chernets...@users.noreply.github.com> Date: Sun Aug 31 19:29:01 2025 +0200
patch 9.1.1718: filetype: kubectl config file is not recognized Problem: filetype: kubectl config file is not recognized Solution: Detect .kube/kubectl as yaml filetype (Volodymyr Chernetskyi). References: - https://kubernetes.io/docs/reference/kubectl/kuberc/ closes: #18169 Signed-off-by: Volodymyr Chernetskyi <19735328+chernets...@users.noreply.github.com> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 2e154300e..e1354a503 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -3064,7 +3064,7 @@ au BufNewFile,BufRead *.y call dist#ft#FTy() " Yaml au BufNewFile,BufRead *.yaml,*.yml,*.eyaml setf yaml -au BufNewFile,BufRead */.kube/config setf yaml +au BufNewFile,BufRead */.kube/config,*/.kube/kuberc setf yaml " Raml au BufNewFile,BufRead *.raml setf raml diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 2ec380763..829ba8f2e 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -931,7 +931,7 @@ def s:GetFilenameChecks(): dict<list<string>> xslt: ['file.xsl', 'file.xslt'], yacc: ['file.yy', 'file.yxx', 'file.y++'], yaml: ['file.yaml', 'file.yml', 'file.eyaml', 'file.kyaml', 'file.kyml', 'any/.bundle/config', '.clangd', '.clang-format', '.clang-tidy', 'file.mplstyle', 'matplotlibrc', 'yarn.lock', - '/home/user/.kube/config', '.condarc', 'condarc', 'pixi.lock'], + '/home/user/.kube/config', '/home/user/.kube/kuberc', '.condarc', 'condarc', 'pixi.lock'], yang: ['file.yang'], yuck: ['file.yuck'], z8a: ['file.z8a'], diff --git a/src/version.c b/src/version.c index 23ea81fdb..1ca0bcc28 100644 --- a/src/version.c +++ b/src/version.c @@ -724,6 +724,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1718, /**/ 1717, /**/ -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1usm6z-00Da86-Nh%40256bit.org.