]> git.madduck.net Git - etc/vim.git/blobdiff - .vim/bundle/explainpat/README

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

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.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Add '.vim/bundle/explainpat/' from commit '8b7939ff867684ca9e31f1f0022fb91bbbdf152d'
[etc/vim.git] / .vim / bundle / explainpat / README
diff --git a/.vim/bundle/explainpat/README b/.vim/bundle/explainpat/README
new file mode 100644 (file)
index 0000000..65cba88
--- /dev/null
@@ -0,0 +1,48 @@
+This is a mirror of http://www.vim.org/scripts/script.php?script_id=4364
+
+:ExplainPattern {pattern}               or
+:ExplainPattern {register}
+
+        parse the given Vim {pattern} and print a line of help
+        (with color) for each found pattern item.  Nested
+        items get extra indent.
+
+        A single-char argument is used as {register} argument:
+                /      explain the last search pattern
+                *      explain pattern from the clipboard
+                a      explain pattern from register a
+
+
+Example:  :ExplainPattern *
+
+Register: *
+Pattern: \C^\%(\\\%(@<.\|%[dxouU[(^$V#<>]\=\|z[1-9se(]\|@[>=!]\|_[[^$.]\=\|.\)\|.\)
+  \C         match case while matching the pattern
+  ^          match at start of line (or string)
+  \%(        start of non-capturing group
+  |   \\         literal string (1 atom(s))
+  |   \%(        start of non-capturing group
+  |   |   @<         literal string (2 atom(s))
+  |   |   .          match any character
+  |   | \|         OR branch
+  |   |   %          literal string (1 atom(s))
+  |   |   [dxouU[(^$V#<>] collection
+  |   |   \=         (multi) zero or one of the preceding atom
+  |   | \|         OR branch
+  |   |   z          literal string (1 atom(s))
+  |   |   [1-9se(]   collection
+  |   | \|         OR branch
+  |   |   @          literal string (1 atom(s))
+  |   |   [>=!]      collection
+  |   | \|         OR branch
+  |   |   _          literal string (1 atom(s))
+  |   |   [[^$.]     collection
+  |   |   \=         (multi) zero or one of the preceding atom
+  |   | \|         OR branch
+  |   |   .          match any character
+  |   \)         end of group
+  | \|         OR branch
+  |   .          match any character
+  \)         end of group
+
+2013 Jan 17