Christian Brabandt wrote:
> Bram,
> condsider this:
>
> #v+
> ~$vim -u NONE -N <((seq 1 10))
> [Enter the following normal mode commands:]
> !!printf "\%s" "foobar"<cr>
> j.
> :w !cat
> foobar
> /proc/26234/fd/11s
> 3
> 4
> 5
> ...
> #v-
>
> Note, that the second line, does not contain the foobar line, but
> contains the filename.
> This happens, because when saving the command for the redo buffer, the
> '%' and '#' in the
> command line are no longer escaped and so when redoing the command get
> replaced by the buffer
> name. If doing this in an empty scratch buffer, you'll even end up with
> Error E499
>
> I think, when storing the commmandline for the redo buffer, any
> unescaped '%' and '#' needs to be
> escaped again, since by the time the command is saved in the redo
> buffer, wildcard expansion has
> already taken place, so any remaining wildcards must have been escaped
> before.
>
> I think, current workaround for that problem is to set the cpo setting
> to include the '!' flag.
>
> This problem has been reported at
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=739656
Thanks. I'll put it in the todo list.
--
JOHN CLEESE PLAYED: SECOND SOLDIER WITH A KEEN INTEREST IN BIRDS, LARGE MAN
WITH DEAD BODY, BLACK KNIGHT, MR NEWT (A VILLAGE
BLACKSMITH INTERESTED IN BURNING WITCHES), A QUITE
EXTRAORDINARILY RUDE FRENCHMAN, TIM THE WIZARD, SIR
LAUNCELOT
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" 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
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.