perl - Prevent vim :make from changing the current working directory? -
summary:
When the make command of the video is called, then this current working directory ( CWD) is the directory of the current file. It runs megprog since then. I want to stop the make command from changing the CWD, and instead call MajorPrim to the directory of the parent wind instances
Example:
I have the following standard Pearl project hierarchy <>
is set to my PERL5LIB
PERL5LIB = ': Lib'
In my .vimrc I have
compiler perl set makeprg = perl \ -c \%
I use VIM from my module to the original project level By editing:
in VM: PWD works Expected as: Finds my project lib, and displays results in the shell window Land: However: Return an Arrow R Pwd indicates problem
: pwd "/ path / to / project"
:! Perl-c% OUTPUT: perl -c lib / My / Module / Foo.pm lib / My / Module / Foo.pm syntax is OK
: create "perl script lib / My / Module / Foo.pm can not open: there is no such file or directory"
Is there any way to stop this from happening?
If the current command: the current working directory is changing, and autochdir is not set, there may be a plugin That has added an autocommund on the QuickFixCmdPre set. A plugin that does this is eclaimed, which calls the QuickFixLocalChangeDirectory () function if g: EclimMakeLCD is set to 1.
Use: Use AU, QuickFixCmdPre to find all the AutoComments in your current configuration.
Comments
Post a Comment