X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/8a97a4231254ab25e017fecd10ba2068bd588e52..34997613f623002a61f0d058789dfeabbbc0174b:/.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 index 0000000..731f9a4 --- /dev/null +++ b/.vim/bundle/explainpat/plugin/explainpat.vim @@ -0,0 +1,34 @@ +" File: explainpat.vim +" Created: 2011 Nov 02 +" Last Change: 2013 Mar 08 +" Rev Days: 7 +" Author: Andy Wokula +" 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() + +" Modeline: {{{1 +" vim:ts=8:fdm=marker: