An open API service indexing awesome lists of open source software.

https://github.com/airblade/vim-tag-closer

A Vim plugin to close HTML tags on demand.
https://github.com/airblade/vim-tag-closer

html neovim vim

Last synced: 2 months ago
JSON representation

A Vim plugin to close HTML tags on demand.

Awesome Lists containing this project

README

          

# 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](https://html.spec.whatwg.org/multipage/syntax.html#void-elements).

### Installation

Install like every other Vim plugin :)

### Usage

Append the appropriate closing tag at the cursor with:

- Insert-mode: \/
- 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.