Bug 623654
| Summary: | vi (vim-minimal) chokes on .vimrc | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Clemens Buchacher <drizzd> |
| Component: | vim | Assignee: | Karsten Hopp <karsten> |
| Status: | CLOSED WORKSFORME | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 13 | CC: | karsten, psabata, scott |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 603151 | Environment: | |
| Last Closed: | 2011-05-18 11:43:45 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Clemens Buchacher
2010-08-12 12:53:17 UTC
/bin/vi really acts strange after reading some of my options in .vimrc, making it quite annoying/unusable editor... Works for me, so it looks like you're using a custom .vimrc that doesn't have the necessary checks if a feature is supported.
You need to enclose the offending part of our .vimrc with a feature check so that /bin/vi doesn't try to use it.
A check looks like this:
if has("cscope")
set csprg=cscope
....
endif
You can get a list of feature names that you can use here with :help feature-list
If that still doesn't help, reopen this bugzilla and attach your .vimrc, please
This is a minimal .vimrc that will reproduce my particular problem: (This was part of a function body in case you are wondering.) put='hi' IMO it makes no sense for vim-minimal to even try to read a file called .vimrc. There is already a mechanism in the package to not read /etc/vimrc (it's replaced with /etc/virc). I believe the same should apply to the user specific configuration file. |