Sha256: 0bd3299c251332ded588a33febc9f50d7ec92fbedf2aa3202e1c9eb13a3b8817

Contents?: true

Size: 942 Bytes

Versions: 9

Compression:

Stored size: 942 Bytes

Contents

" Source the standard indentation file, since we only want to adjust the
" default indentation.
sou $VIMRUNTIME/indent/html.vim

" Set the default indentation to be that of the standard indent file.
let b:defaultIndentExpr = &indentexpr

" Use IndentAnything
setlocal indentexpr=IndentAnything()

" Echo info about indentations
let b:indent_anything_echo = 1

"
" Adjust the default indentation for comments.  Set the comments for html to
" look like this: 
"
"       <!--
"          - comment here
"          -->
"
setl comments=sr:<!--,m:-,e:-->
let b:blockCommentStartRE  = '<!--'
let b:blockCommentMiddleRE = '-'
let b:blockCommentEndRE    = '-->'
let b:blockCommentMiddleExtra = 3

" Specify the syntax names for html comments and strings
let b:blockCommentRE = 'htmlComment'
let b:commentRE      = b:blockCommentRE

let b:stringRE            = 'htmlString'
let b:singleQuoteStringRE = b:stringRE
let b:doubleQuoteStringRE = b:stringRE

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
utils-0.0.10 lib/utils/config/vim/indent/IndentAnything_html.vim
utils-0.0.8 lib/utils/config/vim/indent/IndentAnything_html.vim
utils-0.0.7 lib/utils/config/vim/indent/IndentAnything_html.vim
utils-0.0.6 lib/utils/config/vim/indent/IndentAnything_html.vim
utils-0.0.5 lib/utils/config/vim/indent/IndentAnything_html.vim
utils-0.0.4 lib/utils/config/vim/indent/IndentAnything_html.vim
utils-0.0.3 lib/utils/config/vim/indent/IndentAnything_html.vim
utils-0.0.2 lib/utils/config/vim/indent/IndentAnything_html.vim
utils-0.0.0 lib/utils/config/vim/indent/IndentAnything_html.vim