Tuesday, January 3, 2012

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

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.

-tim

http://www.vimgolf.com/challenges/4dddc7c1ed7380000100000d


--
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: