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.
- Host: GitHub
- URL: https://github.com/airblade/vim-tag-closer
- Owner: airblade
- License: mit
- Created: 2022-04-22T11:02:02.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-05T16:13:09.000Z (over 1 year ago)
- Last Synced: 2025-02-24T23:01:37.382Z (8 months ago)
- Topics: html, neovim, vim
- Language: Vim Script
- Homepage:
- Size: 10.7 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
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.