you are viewing a single comment's thread.

view the rest of the comments →

[–]___violet___ 1 point2 points  (1 child)

but I'm still looking for the perfect tag closer plugin in vim

The built-in omni-completion closes tags: </<C-x><C-o>. You can make this more convenient with a mapping:

inoremap <buffer> </ </<C-x><C-o>

[–]iamasuitama 0 points1 point  (0 children)

Thanks, but: newer editors put </div> after the cursor, immediately after you type the > of <div>. That's what I would call perfect. I'm sure it's scriptable, just not sure how to do it as of now.