All Projects → alvan → Vim Closetag

alvan / Vim Closetag

Auto close (X)HTML tags

Labels

Projects that are alternatives of or similar to Vim Closetag

3d-tag-cloud-for-react
基于 react 的 3d 标签云
Stars: ✭ 23 (-95.2%)
Mutual labels:  tag
action-autotag
Automatically generate a new tag when the manifest file (package.json, Dockerfile, custom file, etc) version changes.
Stars: ✭ 45 (-90.61%)
Mutual labels:  tag
Tags Input
🔖 <input type="tags"> like magic
Stars: ✭ 312 (-34.86%)
Mutual labels:  tag
Id3
Library to read, modify and write ID3 & Lyrics3 tags in MP3 files. Provides an extensible framework for retrieving ID3 information from online services.
Stars: ✭ 27 (-94.36%)
Mutual labels:  tag
TagEditText
A simple Android Tag EditText
Stars: ✭ 14 (-97.08%)
Mutual labels:  tag
pheniqs
Fast and accurate sequence demultiplexing
Stars: ✭ 14 (-97.08%)
Mutual labels:  tag
RiiTag
RiiTag is a customizable gamertag for the Wii.
Stars: ✭ 15 (-96.87%)
Mutual labels:  tag
Vue Gl
Vue.js components rendering 3D WebGL graphics reactively with three.js
Stars: ✭ 434 (-9.39%)
Mutual labels:  tag
H2PC TagExtraction
A application made to extract assets from cache files of H2v using BlamLib by KornnerStudios.
Stars: ✭ 12 (-97.49%)
Mutual labels:  tag
Vuewordcloud
Generates a cloud out of the words.
Stars: ✭ 284 (-40.71%)
Mutual labels:  tag
ShowMoreText
This is simple library for creating textview expandable. Like Continue or Less. This library extended versiion TextView. Easy to use.
Stars: ✭ 97 (-79.75%)
Mutual labels:  tag
TagField
🏷 Simple Tag Field for SwiftUI 🏷
Stars: ✭ 19 (-96.03%)
Mutual labels:  tag
change
A simple tool that automates generating and updating a changelog
Stars: ✭ 47 (-90.19%)
Mutual labels:  tag
svg-tag-names
List of known SVG tag names
Stars: ✭ 22 (-95.41%)
Mutual labels:  tag
Bump
Bump updates the project's version, updates/creates the changelog, makes the bump commit, tags the bump commit and makes the release to GitHub. Opinionated but configurable.
Stars: ✭ 327 (-31.73%)
Mutual labels:  tag
imageorient
Go image decoding with respect to the EXIF orientation tag
Stars: ✭ 62 (-87.06%)
Mutual labels:  tag
svg-element-attributes
Map of SVG elements to allowed attributes
Stars: ✭ 16 (-96.66%)
Mutual labels:  tag
Music Metadata
Stream and file based music metadata parser for node. Supporting a wide range of audio and tag formats.
Stars: ✭ 455 (-5.01%)
Mutual labels:  tag
Pdf Bookmark
pdf bookmark generator 目录 书签 大纲
Stars: ✭ 327 (-31.73%)
Mutual labels:  tag
Releaser Tools
Create a GitHub/GitLab/etc. release using a project's commit messages and metadata.
Stars: ✭ 283 (-40.92%)
Mutual labels:  tag

closetag.vim

Usage

The current content:

<table|

Now you press >, the content will be:

<table>|</table>

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

<table>
    |
</table>

The following tags will not be closed:

<area>, <base>, <br>, <col>, <command>, <embed>, <hr>, <img>, 
<input>, <keygen>, <link>, <meta>, <param>, <source>, <track>, <wbr>,<menuitem>

Installation

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

  • Use vundle:

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

Options

Set in your vimrc:

" filenames like *.xml, *.html, *.xhtml, ...
" These are the file extensions where this plugin is enabled.
"
let g:closetag_filenames = '*.html,*.xhtml,*.phtml'

" filenames like *.xml, *.xhtml, ...
" This will make the list of non-closing tags self-closing in the specified files.
"
let g:closetag_xhtml_filenames = '*.xhtml,*.jsx'

" filetypes like xml, html, xhtml, ...
" These are the file types where this plugin is enabled.
"
let g:closetag_filetypes = 'html,xhtml,phtml'

" filetypes like xml, xhtml, ...
" This will make the list of non-closing tags self-closing in the specified files.
"
let g:closetag_xhtml_filetypes = 'xhtml,jsx'

" integer value [0|1]
" This will make the list of non-closing tags case-sensitive (e.g. `<Link>` will be closed while `<link>` won't.)
"
let g:closetag_emptyTags_caseSensitive = 1

" dict
" Disables auto-close if not in a "valid" region (based on filetype)
"
let g:closetag_regions = {
    \ 'typescript.tsx': 'jsxRegion,tsxRegion',
    \ 'javascript.jsx': 'jsxRegion',
    \ }

" Shortcut for closing tags, default is '>'
"
let g:closetag_shortcut = '>'

" Add > at current position without closing the current tag, default is ''
"
let g:closetag_close_shortcut = '<leader>>'

Commands

Use these commands to toggle enable/disable this function for current buffer:

:CloseTagToggleBuffer
:CloseTagEnableBuffer
:CloseTagDisableBuffer
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].