s3rvac / vim-tag-closer

A Vim plugin to close HTML tags on demand.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vim-tag-closer

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.

Installation

Install like every other Vim plugin :)

Usage

Append the appropriate closing tag at the cursor with:

  • Insert-mode: <C-G>/
  • Normal-mode: g/

Settings

  • 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.

Intellectual property

Copyright 2022 Andrew Stewart. Released under the MIT licence.

About

A Vim plugin to close HTML tags on demand.

License:MIT License


Languages

Language:Vim Script 92.4%Language:Shell 7.6%