I'm trying to write a quick s+r to replace single line "multi-line style" comments with single-line style comments. For some reason, it won't match when I use paren's to store match fragments. Below is what I'm using
:%s#/\*(.*)\*/#//\1#g This winds up matching nothing in my file, where if I do a search with the same pattern without the paren's everything's great. Also, this string works (or at least matches) with the following perl perl -pi -e "s/\/\*(.*)\*\//\/\/\1/g" filename.cpp Any ideas? Is there something different about these search "registers" in vim versus the rest of the unix regexp world? Any help would be greatly appreciated. (And yes I can do this in two passes, but I'm looking for the regexp solution so I know how to use this syntax in Vim) Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
