Skip to content

Commit

Permalink
Add better support for handlebars/html
Browse files Browse the repository at this point in the history
  • Loading branch information
L0stSoul committed Apr 14, 2015
1 parent c33eef2 commit d8a5d18
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,12 @@ NeoBundle 'gregsexton/MatchTag'
" Add Support css3 property
NeoBundle 'hail2u/vim-css3-syntax'

" Add support for mustache/handlebars
NeoBundle 'mustache/vim-mustache-handlebars'

" Automatically add closing tags in html-like formats
NeoBundle 'alvan/vim-closetag'

" Smart indent for javascript
" http://www.vim.org/scripts/script.php?script_id=3081
NeoBundle 'lukaszb/vim-web-indent'
Expand Down Expand Up @@ -323,6 +329,21 @@ let delimitMate_expand_cr = 1
" if x - cursor if you press space in {x} result will be { x } instead of { x}
let delimitMate_expand_space = 1

" Without this we can't disable delimitMate for specific file types
let loaded_delimitMate = 1

"-------------------------
" vim-mustache-handlebars

" Enable shortcuts for things like {{{ an {{
let g:mustache_abbreviations = 1

"-------------------------
" vim-closetag

" Enable for files with this extensions
let g:closetag_filenames = "*.handlebars,*.html,*.xhtml,*.phtml"

"-------------------------
" Tern_for_vim

Expand Down Expand Up @@ -753,6 +774,8 @@ if has("autocmd")

" Enable Folding, uses plugin vim-javascript-syntax
au FileType javascript* call JavaScriptFold()
au FileType html let b:loaded_delimitMate = 1
au FileType handlebars let b:loaded_delimitMate = 1

" Group end
augroup END
Expand Down

0 comments on commit d8a5d18

Please sign in to comment.