I am using the closetag.vim plugin, but it doesn’t seem to work for all tags. In the plugin code there is the ignored tags var that contains some one that I noticed were not closing ex dd dl, but there are many others that aren’t in the list that are not working (p, ul, li).
Nothing seemed to happen after updating the list of ignored tags.
To get this plugin to work you just enter the tag text and click tab, right? ie div
Am I missing something?
How did you install the plugin?
I had troubles with closetag.vim when I installed it in
~/.vim/plugins. Then I moved it into~/.vim/scriptsinstead, and added the following to my.vimrc:and now it works fine for me. I find that it closes all tags (including those included in the ‘ignore’ list), but not those that are self-closing (e.g.
<img/>).In the version of the script that I am using (0.9.1), it defines
<C-_>as the trigger for completing tags. If you have mapped the command to<tab>, then that should work too.