]> git.madduck.net Git - etc/vim.git/blob - .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:

No longer using vimplate
[etc/vim.git] / .vim / bundle / explainpat / plugin / explainpat.vim
1 " File:         explainpat.vim
2 " Created:      2011 Nov 02
3 " Last Change:  2013 Mar 08
4 " Rev Days:     7
5 " Author:       Andy Wokula <anwoku@yahoo.de>
6 " License:      Vim License, see :h license
7 " Version:      0.5
8
9 " :ExplainPattern [pattern]
10 "
11 "   parse the given Vim [pattern] (default: text in the Visual area) and
12 "   print a line of help (with color!) for each found pattern item.  Nested
13 "   items get extra indent.
14 "
15 "   A single-char [pattern] argument is used as register argument:
16 "       /       explain the last search pattern
17 "       *       explain pattern from the clipboard
18 "       a       explain pattern from register a
19 "
20
21 if exists("loaded_explainpat")
22     finish
23 endif
24 let loaded_explainpat = 1
25
26 if v:version < 700
27     echomsg "explainpat: you need at least Vim 7.0"
28     finish
29 endif
30
31 com! -nargs=?  ExplainPattern  call explainpat#ExplainPattern(<q-args>)
32
33 " Modeline: {{{1
34 " vim:ts=8:fdm=marker: