Bug 1724126
Summary: | Vim shows some template for .spec file even if I don't want to work with RPM, seems like a confusing default? | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | ell1e <el> |
Component: | vim | Assignee: | Karsten Hopp <karsten> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 29 | CC: | gchamoul, karsten, praiskup, zdohnal |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | vim-8.1.1713-3.fc31 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-07-19 08:08:17 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
ell1e
2019-06-26 10:03:24 UTC
Hi Jonas, thank you for reporting the issue! It is actually done by line in /etc/vimrc: autocmd BufNewFile *.spec 0r /usr/share/vim/vimfiles/template.spec I'm not sure how many people find it useful, so let's ask on devel-list https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/PUPN2P5MJI2C4VMFFCRISDRLXCDM37RI/ . If there is going to be majority opposition, I'll let the defaults as they are. You can always comment out that line in /etc/vimrc. Seems nobody opposed turning it off, so I pushed the changes. They will come into Fedora 29/30 with update after current pending 8.1.1713 update. But be aware the change will not be applied automatically because /etc/vimrc is config file which is not replaced automatically. You need to look into /etc and rename new vimrc, which will be put there by dnf and have a suffix (IIRC .rpmnew or something), to be simple 'vimrc'. I'll close it as RAWHIDE, because the fix is already in rawhide now, and it does not seem as critical issue which needs to be backported right now. > Seems nobody opposed turning it off
I'm was/am against, just to politely admit that publicly. IMO the wast
majority of people _on Fedora_ expect that *.spec file is actually the
RPM spec file.
|