|
doesn't source $PWD/_exrc at startup: msg#00138linux.debian.packages.vim.devel
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. -!-
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Bug#257342: marked as forwarded (vim: Slovak translation hardly is ``in cp1251'' ;-)): 00138, Debian Bug Tracking System |
|---|---|
| Next by Date: | r174 - in trunk/vim/debian: . patches: 00138, Stefano Zacchiroli |
| Previous by Thread: | slovak translation is in cp1250i: 00138, Stefano Zacchiroli |
| Next by Thread: | Processed: doesn't source $PWD/_exrc at startup: 00138, Debian Bug Tracking System |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |