A Vim plugin which closes HTML tags on demand.
There are quite a few tag-closing plugins already but they all close tags eagerly, i.e. they generate the closing tag at the same time as the opening tag. I prefer to put in the closing tags when I get to where they should go.
Having said that, I don't want to actually type out each closing tag. The computer can do that for me.
Ignores void elements.
Install like every other Vim plugin :)
Append the appropriate closing tag at the cursor with:
- Insert-mode: <C-G>/
- Normal-mode: g/
-
g:tag_closer_enable_default_keymaps
(bool, default:1
)Set to
0
to disable the default keymaps. In this case, you will need to create your own keymaps.
Copyright 2022 Andrew Stewart. Released under the MIT licence.