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

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 / plugin / explainpat.vim
diff --git a/.vim/bundle/explainpat/plugin/explainpat.vim b/.vim/bundle/explainpat/plugin/explainpat.vim
new file mode 100644 (file)
index 0000000..731f9a4
--- /dev/null
@@ -0,0 +1,34 @@
+" File:         explainpat.vim
+" Created:      2011 Nov 02
+" Last Change:  2013 Mar 08
+" Rev Days:     7
+" Author:      Andy Wokula <anwoku@yahoo.de>
+" License:     Vim License, see :h license
+" Version:     0.5
+
+" :ExplainPattern [pattern]
+"
+"   parse the given Vim [pattern] (default: text in the Visual area) and
+"   print a line of help (with color!) for each found pattern item.  Nested
+"   items get extra indent.
+"
+"   A single-char [pattern] argument is used as register argument:
+"      /       explain the last search pattern
+"      *       explain pattern from the clipboard
+"      a       explain pattern from register a
+"
+
+if exists("loaded_explainpat")
+    finish
+endif
+let loaded_explainpat = 1
+
+if v:version < 700
+    echomsg "explainpat: you need at least Vim 7.0"
+    finish
+endif
+
+com! -nargs=?  ExplainPattern  call explainpat#ExplainPattern(<q-args>)
+
+" Modeline: {{{1
+" vim:ts=8:fdm=marker: