All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
1 *explainpat.txt* Give detailed help on a regexp pattern.
3 For Vim version 7.0. Last change: 2012 Dec 19
4 By Andy Wokula <anwoku@yahoo.de>
6 *explainpat* *explainpat.vim*
7 When you want to inspect a given Vim regexp pattern, this script might save
8 you lots of help lookups. And it will make the structure of a regexp visible.
9 And it helps spotting mistakes.
11 If you find that it explains something wrong, drop me an email.
13 ==============================================================================
15 :ExplainPattern [{pattern} | {register}]
16 parse the given Vim {pattern} and print a line of help
17 (with color) for each found pattern item. Nested
18 items get extra indent.
20 A single-char argument is used as {register} argument:
21 / explain the last search pattern
22 * explain pattern from the clipboard
23 a explain pattern from register a
26 The pattern is first converted into a purely magic pattern using
27 |nwo#magic#MakeMagic()|. This means that embedded |\V| |\M| |\m| |\V|
28 specifiers are effectively removed from the explanation.
30 :ExplainPattern also accepts some invalid patterns: >
35 ==============================================================================
36 vim:tw=78:fo=tcq2:sts=0:ts=8:sw=8:fdm=marker:fmr=^_\^,^\^:ft=help: