On Mon 18-Sep-06 1:51am -0600, Yakov Lerner wrote:

> You cannot just put bar-separate sequence of commands
> under :silent. In the bar-separated sequence of commands,
> you need to prepend :silent to every command.

Yes, however when Tony suggested defining the command with
-bar (just what I needed), he also suggested that :silent
may apply beyond the command it proceeded.  As you note and
as I have noted in the post to which you are replying, this
is not the case.

> I suggest that you stick to sil cmd1|sil cmd2 |sil cmd3

I was and am using:  sil cmd1 | cmd2 | sil cmd3

This at first wasn't working (nothing to do with :silent)
because without a -bar in the definition of cmd1, I was
getting the E488.  After Tony's comments, I read over the
help section on -bar and added it to my two commands (cmd1
and cmd3 - cmd2 is the :helpgrep which I didn't want to
silence).

It all works fine.  Now I can use helpgrep on only the paths
of help files I choose to include.  In particular, my :HG
command now becomes :helpgrep applied to only the
$vimruntime help files (instead of full 'rtp' help files.

Thanks for your comments.

-- 
Best regards,
Bill

Reply via email to