Created attachment 1266582 [details] suggested fix patch Description of problem: I have configured vim as EDITOR for sudo. But when I want to edit /etc/named.conf, Version-Release number of selected component (if applicable): vim-common-8.0.425-1.fc25.x86_64 How reproducible: Always Steps to Reproduce: 1. dnf install bind sudo 2. export EDITOR=vim 3. sudoedit /etc/named.conf Actual results: Whole file is highlighted as error, all in red color. Because vim detected file type as binzone, which has very different format. Expected results: Vim detects ft=named, as it does for vim /etc/named.conf. Additional info: It seems it matches '... ISC BIND named(8) ...' in configuration file. I doubt "BIND.*named" does match zone files of named usually. I would consider to remove it. More helpful fix is to change path of named config to named*.conf rndc*.conf
vim-8.0.514-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-e2250620d8
vim-8.0.514-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-47eb254e1c
vim-8.0.514-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-6766918b0f
Another file with invalid syntax highlight is /etc/sysconfig/named. It will have wrong highlight when edited directly by vim /etc/sysconfig/named.
vim-8.0.514-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.
vim-8.0.514-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.
vim-8.0.514-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.