vue.vim 667 B

12345678910111213141516171819202122232425
  1. " Vim filetype plugin file
  2. " Language: vue
  3. if exists("b:did_ftplugin") | finish | endif
  4. let b:did_ftplugin = 1
  5. " Make sure the continuation lines below do not cause problems in
  6. " compatibility mode.
  7. let s:save_cpo = &cpo
  8. set cpo-=C
  9. " Copied from ftplugin/html.vim
  10. " Original thanks to Johannes Zellner and Benji Fisher.
  11. if exists("loaded_matchit")
  12. let b:match_ignorecase = 1
  13. let b:match_words = '<:>,'
  14. \ .. '<\@<=[ou]l\>[^>]*\%(>\|$\):<\@<=li\>:<\@<=/[ou]l>,'
  15. \ .. '<\@<=dl\>[^>]*\%(>\|$\):<\@<=d[td]\>:<\@<=/dl>,'
  16. \ .. '<\@<=\([^/][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>'
  17. endif
  18. " Restore the saved compatibility options.
  19. let &cpo = s:save_cpo
  20. unlet s:save_cpo