jeromejj / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

vimgrep over arglist doesn't work on Windows #361

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
0. Use vim on Windows 

1. Have a few files in your arglist with full paths. 
E.g. 
\Work\test.py \Users\User\another.py

2. do the following command
:vimgrep /def/ ##

What is the expected output? What do you see instead?
vimgrep should find all mentions of "def" in the two files in my arglist. 
Instead I get a long pause and finally an error complaining about a bad path 
Cannot open file "\\Work\\test.py"

What version of the product are you using? On what operating system?
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 25 2014 04:20:13)
MS-Windows 32-bit console version 
running on Win 8.1 x64

Please provide any additional information below.
The problem is presumably that when ## is expanded it doubles the backslash 
which isn't supported for vimgrep

Original issue reported on code.google.com by jonthoro...@gmail.com on 6 May 2015 at 1:43

GoogleCodeExporter commented 9 years ago
Could it be, that you have 'autochdir' set?
Does that also happen if you start vim with gvim -i NONE -N -u NONE
?

Original comment by chrisbr...@googlemail.com on 6 May 2015 at 3:33

GoogleCodeExporter commented 9 years ago
'autochdir' shouldn't be relevant here since the leading '\' in the paths means 
they're relative to the root of the drive.

I'm able to reproduce the behavior with 7.4.493.

Original comment by vega.james@gmail.com on 6 May 2015 at 4:36

GoogleCodeExporter commented 9 years ago
https://github.com/jamessan/vim/commit/935b2ba0d85c37536b1dd76624283181378182f2.
patch should resolve the issue.

Original comment by vega.james@gmail.com on 6 May 2015 at 4:59

GoogleCodeExporter commented 9 years ago

Original comment by chrisbr...@googlemail.com on 28 May 2015 at 7:25

GoogleCodeExporter commented 9 years ago
Fixed by 7.4.730

Original comment by chrisbr...@googlemail.com on 10 Jun 2015 at 6:01