Subject: vi not reading .nexrc or .exrc files
To: None <netbsd-help@netbsd.org>
From: John Gordon <john_94501@yahoo.com>
List: netbsd-help
Date: 03/27/2003 23:34:01
Hello,
I have a strange problem: vi doesn't seem to be even attempting to read from
$HOME/.nexrc or $HOME/.exrc as the man page suggests it should. Looking in the
ktrace output at the files it attempts to open I see this:
565 vi NAMI "/etc/ld.so.conf"
565 vi NAMI "/usr/lib/libcurses.so.5"
565 vi NAMI "/usr/lib/libcurses.so.5"
565 vi NAMI "/usr/lib/libcurses.so.5"
565 vi NAMI "/usr/lib/libc.so.12"
565 vi NAMI "/usr/lib/libc.so.12"
565 vi NAMI "/usr/lib/libc.so.12"
565 vi NAMI "/etc/malloc.conf"
565 vi NAMI "/home/johng/.termcap.db"
565 vi NAMI "/home/johng/.termcap.db"
565 vi NAMI "/home/johng/.termcap"
565 vi NAMI "/usr/share/misc/termcap.db"
565 vi NAMI "/usr/share/misc/termcap.db"
565 vi NAMI "./"
565 vi NAMI "/tmp/"
565 vi NAMI "/tmp//bt.00565a"
565 vi NAMI "/tmp//bt.00565a"
565 vi NAMI "/etc/vi.exrc"
565 vi NAMI "/tmp"
565 vi NAMI "/tmp/vi.00565b"
565 vi NAMI "/var/tmp/vi.recover"
565 vi NAMI "/var/tmp/vi.recover"
565 vi NAMI "/var/tmp/vi.recover/vi.00565c"
565 vi NAMI "/var/tmp/vi.recover/vi.00565c"
565 vi NAMI "/tmp/vi.00565b"
565 vi NAMI "/var/tmp/vi.recover/vi.00565c"
565 vi NAMI "/tmp/"
565 vi NAMI "/tmp//bt.00565d"
565 vi NAMI "/tmp//bt.00565d"
565 vi NAMI "/home/johng/.termcap.db"
565 vi NAMI "/home/johng/.termcap.db"
565 vi NAMI "/home/johng/.termcap"
565 vi NAMI "/usr/share/misc/termcap.db"
565 vi NAMI "/usr/share/misc/termcap.db"
565 vi NAMI "/tmp/vi.00565b"
565 vi NAMI "/var/tmp/vi.recover/vi.00565c"
Notice it attempts to read the global settings in /etc/vi.exrc but not my own
ones. I searched a little, and have seen people report similar problems in the
past, though I also found a ktrace output that clearly showed the attempt at
opening these files being made.
I am running a pretty much vanilla 1.6 i386 install (even down to the GENERIC
kernel off the release CD). The vi I am running is the standard one as far as I
know. Info as follows:
-r-xr-xr-x 3 root wheel 269908 Sep 8 2002 /usr/bin/vi
SHA1 (/usr/bin/vi) = 8dd55ab9aeb94ff88dbcb97d0b0e097994e0a862
MD5 (/usr/bin/vi) = 04dd40da30f1ad63612806a18af4ea05
Any ideas? Not a big deal as I can probably put the settings I need in the
global file, but seems a little odd that the local ones don't work.
Rgds,
John...
=====
Rate Corporate America at http://exec-ratings.bluedonkey.org
__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com