hunnitgz-Aziz / vim-closetag

Auto close (X)HTML tags

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

closetag.vim

Usage

For example, below is the current content:

<table|

Now you press >, the content will be:

<table>|</table>

And now if you press > again, the content will be:

<table>
    |
</table>

Install

  • Just put the files into ~/.vim/ or <HOMEDIR>\vimfiles\ (for Windows).

  • Use vundle:

      Plugin 'alvan/vim-closetag'
    
  • Use other package manager.

Options

You can set this in your vimrc:

# filenames like *.xml, *.html, *.xhtml, ...
let g:closetag_filenames = "*.html,*.xhtml,*.phtml"

Then after you press > in these files, this plugin will try to close the current tag.

About

Auto close (X)HTML tags


Languages

Language:Vim Script 100.0%