vim-scripts/HTML-AutoCloseTag — pull request #1 by ynonp (2014-05-09 20:37:57+00:00)
Title: Bugfix: counter had wrong initial value

search() returns line numbers, so counter's initial value was the first line number that had the tag.
The following HTML for example resulted in a wrong counter value, and so plugin didn't work well:

a