Sorry for the added reply, but this is indeed very interesting. I get
the same results from recording:

qqvf'df'Dq     -- does what you expect executing all commands
@q             -- behaves like :normal vf'df'D and stops executing after
f'

:normal f'llll  is another example where the llll are never executed.

I browsed through the help and couldn't find anything saying this is
intended behavior.  In fact, quite the opposite:

:norm[al]! {commands}
        ...
        {commands} is executed like it is typed.
        ...


Chuck

-----Original Message-----
From: Chuck Mason 
Sent: Thursday, August 31, 2006 11:02 AM
To: [EMAIL PROTECTED]; [email protected]
Subject: RE: Problem with :normal?


If you do :normal vfld   then what happens is what you expect.  So, my
guess is that the "script" is simply stopped when f' doesn't do
anything. I.e. there is no ' so f' errs and the rest of the command is
terminated.

That's just my *guess*, though.

Chuck

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 31, 2006 10:49 AM
To: [email protected]
Subject: Problem with :normal?

Hey Vimmers,

after reading through a thread earlier on sourcing commands from a file
i did a little experimentation with :normal. If given the line:

test this line
    ^
with the cursor at the carat and you do :normal vf'df'D nothing is
deleted and
you are left in normal mode.  If on the other hand, you actually type
vf'df'D
in normal mode you are only left with test.  I've noticed some other
strange
behavior when using visual mode from :normal.  Not sure if this is a
bug.
It exists through patch 40 of vim7.  Looks like both linux and windows
versions are affected.
  Thanks!
    Dan

Reply via email to