Initial commit.

This commit is contained in:
yan
2011-11-17 15:45:33 -06:00
commit 882015bc6d
1819 changed files with 111625 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
" 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