On 02/11/08 04:37, bill lam wrote:
> On Sat, 01 Nov 2008, Tony Mechelynck wrote:
>> :%s/\[\(\x\x\x\x\)?]/\=eval('"\u' . submatch(1) . '"')/g
>
> Thanks. This works. Those files were edited using m$ ime that did not
> support codepoint above U+10000.
>
> A related question. I have a number of such files that need fixes.
> How do I grep and replace them all under linux.
>
:args file1 file2 *.tex foo???bar.baz
:argdo %s/...from.../...to.../ge
"from" pattern and "to" expression same as above
any number of files (with wildcards if desired) in the :args command
Best regards,
Tony.
--
Jones's First Law:
Anyone who makes a significant contribution to any field of
endeavor, and stays in that field long enough, becomes an obstruction
to its progress -- in direct proportion to the importance of their
original contribution.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---