typescriptreact.vim 787 B

12345678910111213141516171819202122232425262728293031323334
  1. " Vim filetype plugin file
  2. " Language: TypeScript React
  3. " Maintainer: Doug Kearns <dougkearns@gmail.com>
  4. " Last Change: 2020 Aug 09
  5. let s:match_words = ""
  6. let s:undo_ftplugin = ""
  7. runtime! ftplugin/typescript.vim
  8. let s:cpo_save = &cpo
  9. set cpo-=C
  10. if exists("b:match_words")
  11. let s:match_words = b:match_words
  12. endif
  13. if exists("b:undo_ftplugin")
  14. let s:undo_ftplugin = b:undo_ftplugin
  15. endif
  16. " Matchit configuration
  17. if exists("loaded_matchit")
  18. let b:match_ignorecase = 0
  19. let b:match_words = s:match_words .
  20. \ '<:>,' .
  21. \ '<\@<=\([^ \t>/]\+\)\%(\s\+[^>]*\%([^/]>\|$\)\|>\|$\):<\@<=/\1>,' .
  22. \ '<\@<=\%([^ \t>/]\+\)\%(\s\+[^/>]*\|$\):/>'
  23. endif
  24. let b:undo_ftplugin = "unlet! b:match_words b:match_ignorecase | " . s:undo_ftplugin
  25. let &cpo = s:cpo_save
  26. unlet s:cpo_save