Bug 70810 - /bin/vi tries to parse vimrc config files
/bin/vi tries to parse vimrc config files
Product: Red Hat Linux
Classification: Retired
Component: vim (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Karsten Hopp
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2002-08-05 14:00 EDT by Marc MERLIN
Modified: 2007-04-18 12:45 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-09-01 10:35:48 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Marc MERLIN 2002-08-05 14:00:58 EDT
So why is it bad?
Well, /bin/vi is a very stripped down version of vim (by design), and fails
miserably to parse most directives in vimrc files.
Worse: while I haven't looked at the exact reason why, if I run /bin/vi and
it's able to load my /usr/share/vim/vim61/macros/vimrc file (which should not
be there, it should be in /etc/vim, see bug 70809), it fails to parse it correctly
but in the process it actually clobbers the file I was editing and saves the
empty version (I'm not kidding)

I've edited my /bin/vi binary so that it tries to load ~/.virc and
/usr/share/vim/vim61/macros/virc, which allows for having a minimal config file
that /bin/vi can parse

Ideally, when you build /bin/vi, you should have it read a different config file
than /usr/bin/vim

Note You need to log in before you can comment on or make changes to this bug.