2008/11/8 Yegappan Lakshmanan <[EMAIL PROTECTED]>: > Hi, > >> >> On 11月8日, 下午5时56分, StarWing <[EMAIL PROTECTED]> wrote: >> >> but, how can i get the variables match the special regexp? >> > > You can use the following to get the names of global variables > matching a regexp: > > let l = filter(g:, "v:key =~? '<regexp_pattern>'") >
The above will delete all the global variables not matching the specified regular expression. So you should make a copy of the global variables before using the filter() function: let l = filter(copy(g:), "v:key =~? '<regexp_pattern>'") - Yegappan --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---