On 19/07/09 12:54, sinbad wrote: > > hi, > > How to match a C function declaration. I tried the following but > didn't work. > > :%s/\_.*(\_.*);//gc > > thanks
Since \_.* matches _as many as possible_ of anything including a linebreak, the above would delete everything in the file until the last ); pair, provided that there is at least one ( anywhere before it in the file. How would you formulate your desired search-replace, in plain English? Best regards, Tony. -- Bare feet magnetize sharp metal objects so they point upward from the floor -- especially in the dark. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
