Skip to content

airblade/vim-tag-closer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published