|
|
 | | From: | Bertram Scharpf | | Subject: | ./.vimrc is being executed | | Date: | 22 Jan 2005 17:04:17 GMT |
|
|
 | Hi,
when I open a file in Vim, and `.vimrc' exists in the file's directory, the contents are being executed.
user@host:~$ mkdir weird user@host:~$ cd weird user@host:~/weird$ echo 'let @d=strftime("%c")' >.vimrc user@host:~/weird$ vi '+norm "dP' hello
That's annoying when root opens a file in a user's home directory.
The exrc option is disabled.
:set exrc? noexrc
What else can I do?
Thanks in advance,
Bertram
-- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de
|
|
 | | From: | Rouben Rostamian | | Subject: | Re: ./.vimrc is being executed | | Date: | Sat, 22 Jan 2005 17:25:43 +0000 (UTC) |
|
|
 | In article , Bertram Scharpf wrote: >Hi, > >when I open a file in Vim, and `.vimrc' exists in the file's >directory, the contents are being executed. > >user@host:~$ mkdir weird >user@host:~$ cd weird >user@host:~/weird$ echo 'let @d=strftime("%c")' >.vimrc >user@host:~/weird$ vi '+norm "dP' hello > >That's annoying when root opens a file in a user's home >directory. > >The exrc option is disabled. > > :set exrc? > noexrc > >What else can I do?
That shouldn't happen. I just tried this with vim 6.3.46 on Redhat and verified that the local .vimrc does _not_ get executed.
Check the ~/.viminfo file. There may be something in it that causes this behavior.
-- Rouben Rostamian
|
|
|