Closed GoogleCodeExporter closed 9 years ago
Also, if you did
mvim *.txt
in my above example, the correct file would be opened
I realize that the shell does the expansion, but this seems kindof weird to em
Original comment by davetron...@gmail.com
on 6 May 2009 at 5:55
This problem seems to only appear in the stable build. I tried it with the
latest snapshot first and could not
recreate the problem there.
Please download the snapshot build and use that instead. In the meantime I'll
try to figure out what is causing
this in the stable build but this is very low priority I'm afraid.
Original comment by bjorn.winckler@gmail.com
on 11 May 2009 at 4:40
Ok, I figured out why there is a problem in the stable build but not the
snapshot. The forking code changed
so that forking happens right after scanning the command line arguments in the
snapshot build whereas in
the stable build it will read the vimrc files before forking. Thus it reads
the vimrc file, changes directory as a
result, then forks.
I will not fix this in the stable build (it is not a critical bug) so if you
really need to have "cd" in your vimrc you
will have to use the snapshot instead (and I don't see any reason why you
wouldn't want to that...it is not
unstable). Alternatively, you can tell Vim not to fork by passing the "-f"
flag to "mvim" -- that also takes care
of the problem.
Original comment by bjorn.winckler@gmail.com
on 11 May 2009 at 4:49
I agree this is not critical; I've worked around it by moving my 'cd' command
around. I can wait for the next
stable build. Thanks!
Original comment by davetron...@gmail.com
on 11 May 2009 at 4:55
For what it's worth I was running into this problem in gVim today on Windows (a
Google search yielded this thread) and my workaround is worth presenting here
so that others may find it...
In my .vimrc:
if argc() == 0
cd wherever
endif
That way it won't do the cd if there are command line arguments. I'm not sure
if this meets your requirements or not, but it met mine since I only wanted the
cd to happen when I was opening gVim without any args.
Original comment by tom.plun...@gmail.com
on 11 Sep 2010 at 1:51
Original issue reported on code.google.com by
davetron...@gmail.com
on 6 May 2009 at 5:52