Skip to content

Commit

Permalink
Fix indenting for HTML5 tags
Browse files Browse the repository at this point in the history
  • Loading branch information
tpope committed May 5, 2012
1 parent 1b82b67 commit 22b8dbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/ragtag.vim
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ function! s:Init()
runtime! indent/html.vim
endif
endif
" Pet peeve. Do people still not close their <p> and <li> tags?
if exists("g:html_indent_tags") && g:html_indent_tags !~ '\\|p\>'
let g:html_indent_tags = g:html_indent_tags.'\|p\|li\|dt\|dd'
let g:html_indent_tags = g:html_indent_tags.'\|article\|aside\|audio\|bdi\|canvas\|command\|datalist\|details\|figcaption\|figure\|footer\|header\|hgroup\|mark\|meter\|nav\|output\|progress\|rp\|rt\|ruby\|section\|summary\|time\|video'
endif
set indentkeys+=!^F
let b:surround_indent = 1
Expand Down

0 comments on commit 22b8dbe

Please sign in to comment.