logo       

doesn't source $PWD/_exrc at startup: msg#00138

linux.debian.packages.vim.devel

Subject: doesn't source $PWD/_exrc at startup

tags 279378 + patch
thanks

Hi Bram,
a user reported that vim doesn't source "_exrc" at startup even if,
according to the doc it should when the "exrc" option is set and none of
".vimrc", "_vimrc", and ".exrc" are found.

Looking at the code it seems to me that the problem is in main.c. When
you call do_source on EXRC_FILE you set to FALSE the value of the
"check_other" param. Thus, only ".exrc" is tried while "_exrc" is not.

The attached patch fixes the problem, but I don't know whether also the
other argument of do_source (is_vimrc) should be set to true or not in
that case.

Full bug report from the debian BTS follows, patch attached.

Cheers.

> Package: vim
> Version: 1:6.3-013+2
> Severity: minor
>
> According to the docs (starting.txt), the "exrc" option should make vim
> check for
>
> - .vimrc
> - _vimrc
> - .exrc
> - _exrc
>
> in the current directory, in that order, and sourcing the first file
> found. But a _exrc file is ignored. -- The first three are fine.
>
> Nikolaus

--
Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy
zack@{cs.unibo.it,debian.org,bononia.it} -%- http://www.bononia.it/zack/
If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. -!-

Attachment: 303__exrc.c.diff
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise