mattn / emmet-vim

emmet for vim: http://emmet.io/
http://mattn.github.io/emmet-vim
MIT License
6.41k stars 411 forks source link

How can I escape a dollar sign? (for templating engines) #367

Closed partounian closed 7 years ago

partounian commented 7 years ago

I have tried \$ and \\$, but they both end up showing as a number. I currently am trying to use div[value="{{ $option }}"] these tags and similar ones come up often with front-end templating engines, and I am curious if we can escape them in emmet-vim.

Thanks for the amazing plugin!

mattn commented 7 years ago

set dollar_expr off.

  let g:user_emmet_settings = {
  \  'your-filetype' : {
  \    'extends' : 'html',
  \    'dollar_expr': 0,
  \  },
  \}
partounian commented 7 years ago

Thanks, I'll keep that in mind, but is there a one-liner I can use when I'm in the middle of programming instead of that global option?

mattn commented 7 years ago

You can put the code above into your .vimrc.