On 17/12/08 23:11, BigAl wrote:
> Guys... thanks for the suggestions...
>
> Tim your suggestion is working great... can't believe I didn't think
> of that.
>
> Tony... I tried using the submatch but it doesn't look like the
> submatch function is supported in our vim installation.  Also hadn't
> thought of a try catch finally... something to keep in mind for future
> stuff.

submatch() can only be used in a |sub-replace-expression| -- an 
expression given after \= in the "replace by" string of a 
":s[ubstitute]" command. Otherwise I would expect it to be available in 
any Vim version compiled with expression evaluation. IOW, if you don't 
have it, you probably have a crippled-down Vim ("Small" or "Tiny", see 
near the top of the output of ":version"). In that case I would 
recommend to install a better-equipped version of Vim (vim-enhanced 
and/or vim-x11 in a RedHat-like Linux distribution; Steve Hall's 
https://sourceforge.net/project/showfiles.php?group_id=43866&package_id=39721 
on Windows; or compile it yourself as a Big or Huge build, see the two 
HowTo pages on my Vim site http://users.skynet.be/antoine.mechelynck/

Best regards,
Tony.
-- 
Reporter (to Mahatma Gandhi): Mr Gandhi, what do you think of Western
        Civilization?
Gandhi: I think it would be a good idea.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to