Re:Advanced Regular Expressions
by staunch on Thursday May 07, 2009 @02:01PM
(#598359)
Can you make vim use pcre?
[ Parent
| on HN ]
Re:Advanced Regular Expressions
by gustavo_duarte on Thursday May 07, 2009 @02:07PM
(#598372)
From my look in the Vim sources, it would be tons of work to truly make it use pcre internally.
But I think it wouldn't be hard to do a plugin that translates a pcre into a Vim regex, allowing you to search or replace using pcres.
My code though is not integrated with Vim, it takes a free floating regex and converts it. I used it to convert all the regexes in Vim syntax files and build a syntax highlighter. It was a silly project, just for fun.