Skip to content

Configuring Vim for curly

Matt Rohrer edited this page Aug 20, 2015 · 1 revision

The vim-mustache-handlebars plugin works great with curly templates. Install it, and then add the following to your .vimrc:

augroup curly
  autocmd!
  autocmd BufNewFile,BufRead *.curly set filetype=html.mustache syntax=mustache
augroup END

In addition to syntax highlighting, etc. the plugin defines a e textobject so you can cie to change the inside of a {{curly_tag}}.

Clone this wiki locally