Mercurial > vim
diff runtime/filetype.vim @ 34723:07832ceee1a4 v9.1.0240
patch 9.1.0240: filetype: some python tools config files are not recognized
Commit: https://github.com/vim/vim/commit/665220a17b830a271f0c7ef07211d25cd1c7b389
Author: Wu, Zhenyu <wuzhenyu@ustc.edu>
Date: Sun Mar 31 19:12:36 2024 +0200
patch 9.1.0240: filetype: some python tools config files are not recognized
Problem: filetype: some python tools config files are not recognized
Solution: Detect config files for setuptools, pudb, coverage as dosini
(Wu, Zhenyu)
closes: #14361
Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 31 Mar 2024 19:15:08 +0200 |
parents | 75b23b16fe3f |
children | 6a0426cb8273 |
line wrap: on
line diff
--- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1039,6 +1039,9 @@ au BufNewFile,BufRead *.4gl,*.4gh,*.m4gl " .INI file for MSDOS au BufNewFile,BufRead *.ini,*.INI setf dosini +" Many python tools use dosini as their config, such as setuptools, pudb, coverage +au BufNewFile,BufRead setup.cfg,pudb.cfg,.coveragerc setf dosini + " SysV Inittab au BufNewFile,BufRead inittab setf inittab