I was using it as part of a sub-replace-expression (I copied your commandline example to test it in my edit session).
We're running vim 6.1, huge version w/o gui... and this is a corporate installation. I have no control over the configuration so what I got is what I got. Thanks for all of the info though... didn't know about the :version command either. Al On Dec 17, 10:10 pm, Tony Mechelynck <[email protected]> wrote: > 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'shttps://sourceforge.net/project/showfiles.php?group_id=43866&package_... > on Windows; or compile it yourself as a Big or Huge build, see the two > HowTo pages on my Vim sitehttp://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 -~----------~----~----~----~------~----~------~--~---
