Daryl Lee wrote:
-----Original Message-----
From: A.J.Mechelynck [mailto:[EMAIL PROTECTED]
Sent: Monday, October 30, 2006 9:28 PM
To: [EMAIL PROTECTED]
Cc: Vim
Subject: Re: Inline script execution
Daryl Lee wrote:
I am working my way through the :help scripting explanation
(usr_41.txt) and I have a question about the :@" command. I ran the
sample given in the explanation, where the "simple example" is:
:let i = 1
:while i < 5
: echo "count is" i
: let i += 1
:endwhile
And the expected output is
count is 1
count is 2
count is 3
count is 4
What I got was
:^I:let i = 1
:^I:while i < 5
: ^I: echo "count is" i
count is 1
: ^I: let i += 1
: ^I:endwhile
count is 2
count is 3
count is 4
Obviously, something is causing the commands to be echoed. I tried
copying the lines into a separate buffer and deleting the colons,
but
that didn't fix the problem. Is there something that should be set
and isn't?
Daryl
What is your 'verbose' setting? See :help 'verbose'
Best regards,
Tony.
----- End Original Message -----
> Verbose = 0. I tried raising it (to 10) and that just made things
> worse.
>
> Daryl
>
I was thinking a nonzero 'verbose' setting might be the culprit. Apparently it
isn't.
You are talking about "the example given in the explanation for the :@
command". I don't see any such example under ":help :@ " (in
*repeat.txt* For Vim version 7.0. Last change: 2006 Sep 20
at lines 120 sqq.). Where are you seeing that "example"?
Best regards,
Tonoy.