It appears this is caused by using the "CompilerSet" user command. The
script context is then set to where the command is defined. This
command is added internally by the :compiler command, thus gets the
script ID of where the :compiler command is executed.
It appears the best solution is to add a flag to :command to have it not
set the script context to where the user command was defined, but use
the context of where the user command is invoked. That would be useful
in other situations as well.
--
A vacation is a period of travel during which you find that you
took twice as many clothes and half as much money as you needed.
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///