On 13/11/07 17:25 +0800, Dasn wrote: > >On 12/11/07 22:45 +0100, Nikolai Weibull wrote: >> >>On Nov 12, 2007 10:34 PM, Bram Moolenaar <[EMAIL PROTECTED]> wrote: >> >>> Nikolai Weibull wrote: >> >>> > Another issue is that there's doesn't seem to be a way to escape a >>> > comma inside a brace expansion. Neither two commas in a row or a >>> > backslash seem to generate a comma. >> >>> How about using [,]? Doubling backslash? >> >>Tried that, results in an illegal pattern error. None of 1 through 10 >>backslashes help. >> >>% echo ~/{bin,tmp,\,} >> >>works fine in the shell (Zsh). >> > >Vim treats backtick-ed string honestly, so you can match some kinda >weird looking patterns via shell directly. e.g: > >:echo glob('`for i in ~/{bin,tmp,\,}; do echo $i; done`')
A note, this might be incorrect if the name got matched contains special chars like '\n'. -- Dasn --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---