[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vim
Subject:    Re @: (was "repeatability of function calls")
From:       Tim Chase <vim () thechases ! com>
Date:       2004-07-30 16:56:55
Message-ID: 410A7DD7.6040809 () thechases ! com
[Download RAW message or body]

> The answer is that "." repeats the last *normal* command.  While gq} is
> a normal command, :call whatever is an Ex command.  @: will repeat the
> last Ex command.  

A caveat I found by accident is that if the last Ex command 
contained embedded control characters (as entered via the ^V 
mechanism), using @: will likely fail, or at least produce 
unexpected behaviour.  Particularly if you've got an embedded ^M 
in your command line--it will terminate the Ex command at that 
point.  This is despite what the help at

	:he @:

states, that it will "repeat the last command-line [count] 
times."  IMHO, there's either a bug, or a conflict with the 
documentation.  As it *is* consistant with the behavior of 
macro-recording when that encounters an embedded ^M I suspect 
that it's simply a special case that should be noted in the help.

My $0.02 on @:

-tim








[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic