I wrote:
The main drawback with using :perldo, which I do when I need to match
Unicode properties or charge combining marks separately from their base
characters is that it has no equivalent of Vim RE's /c modifier. I have
actually considered trying to write a function emulating the functionality
using Vim's perl API, if only I can get my head around the latter.

I have written a function which does a substitution over a range with :perl s/// while emulatuing vim RE's /c flag as nearly as I could manage:

<https://gist.github.com/bpj/e9ba4914dd269b30c620bf7cb030b292>

Feel free to try it out!

/bpj

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to