better implementation for html tag complete in vi mode