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:

to / project $ vim lib / My / Module / Foo.pm

in VM: PWD works Expected as:

 : pwd "/ path / to / project"  

Finds my project lib, and displays results in the shell window Land:

  :! Perl-c% OUTPUT: perl -c lib / My / Module / Foo.pm lib / My / Module / Foo.pm syntax is OK  

However: Return an Arrow R

 : create "perl script lib / My / Module / Foo.pm can not open: there is no such file or directory"  

Pwd indicates problem

The file is changing in the directory, which is why the perl can not get 'lib /.../ Foo.pm'.

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

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -