Friday, June 21, 2013

Subvert substitution to comma

Hi all:

When using :Subvert
<http://www.vim.org/scripts/script.php?script_id=1545>, how can I
substitute with comma and curly braces?

For example, I'd like to substitute the following with one shot:

"„" → ",,"
"…" → "\dots{}"

However, Subvert does not work:

:%Subvert /{„,…}/{,,,\dots{}}
^^ ^^

The issue is that :Subvert requires a comma separated list. Furthermore,
the curly braces have a different meaning. Escaping those characters
with backslash does not work; wrapping them into quotation marks does
not work either.

Is this possible at all with Subvert?

Best,
Claus

--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment