Tuesday, January 3, 2012

Re: Bug in macro recording/playback re. shift+tab?

On Tue, Jan 3, 2012 at 9:28 PM, Tim Chase <vim@tim.thechases.com> wrote:
> Playing with a vimgolf puzzle[1], I encountered what I believe to be a bug.
>  The top-ranked solution currently does
>
> qqYp<C-A>q8@qqq<C-V>H$by3a <Esc>p:%norm 0yiw$@"<C-A><CR>q8@q6GA <Esc>ZZ
>
> to solve the puzzle.  Knowing that "norm" can be shortened one character by
> typing "no" followed by shift+tab, I tried making the change.  It correctly
> expanded to ":%normal" as expected, but when I got to the "8@q" portion to
> replay the macro, it choked with an "E481: No range allowed".  If I
> hand-type the resulting ":%normal" it works fine, the same as with the
> original. Something about the shift+tab chokes the macro.
I looked up :help c_<S-Tab>, then :help c_<Tab>, which referred me to,
:help 'wildchar'

Character you have to type to start wildcard expansion in the
command-line, as specified with 'wildmode'.
More info here: |cmdline-completion|.
The character is not recognized when used inside a macro. See
'wildcharm' for that.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment