On 12/19/12 10:46, Andy Wokula wrote: > Am 19.12.2012 04:58, schrieb Tim Chase: >> %s/\c<\s*a\s\+href\s*=\(['"]\)\(\%(\1\@![^/]\)\+\)\1\s*>\([^<]*\)</\=WriteShortcut(submatch(0), >> submatch(3), submatch(2))/g > > Now we have automatic explanation of such patterns: > > :ExplainPattern > \c<\s*a\s\+href\s*=\(['"]\)\(\%(\1\@![^/]\)\+\)\1\s*>\([^<]*\)< > > Pattern: \c<\s*a\s\+href\s*=\(['"]\)\(\%(\1\@![^/]\)\+\)\1\s*>\([^<]*\)< [snip awesomeness] > looks better with color, see > http://www.vim.org/scripts/script.php?script_id=4364 > > (needless to say: suggestions welcome)
Suggestions? How about accolades :-) That's pretty sweet! I do enough of these explanations by hand that this may become my go-to script instead of doing laboring over it (and this is coming from a guy who doesn't install scripts lightly--I've only got one in my 5-line vimrc) -tim -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
