bufexplorer.vim 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. " Vim syntax file
  2. " Language: bufexplorer
  3. if exists("b:current_syntax")
  4. finish
  5. endif
  6. let s:cpo_save = &cpo
  7. set cpo&vim
  8. syn match bufExplorerHelp "^\".*" contains=bufExplorerSortBy,bufExplorerMapping,bufExplorerTitle,bufExplorerSortType,bufExplorerToggleSplit,bufExplorerToggleOpen
  9. syn match bufExplorerOpenIn "Open in \w\+ window" contained
  10. syn match bufExplorerSplit "\w\+ split" contained
  11. syn match bufExplorerSortBy "Sorted by .*" contained contains=bufExplorerOpenIn,bufExplorerSplit
  12. syn match bufExplorerMapping "\" \zs.\+\ze :" contained
  13. syn match bufExplorerTitle "Buffer Explorer.*" contained
  14. syn match bufExplorerSortType "'\w\{-}'" contained
  15. syn match bufExplorerBufNbr /^\s*\d\+/
  16. syn match bufExplorerToggleSplit "toggle split type" contained
  17. syn match bufExplorerToggleOpen "toggle open mode" contained
  18. syn match bufExplorerModBuf /^\s*\d\+.\{4}+.*/
  19. syn match bufExplorerLockedBuf /^\s*\d\+.\{3}[\-=].*/
  20. syn match bufExplorerHidBuf /^\s*\d\+.\{2}h.*/
  21. syn match bufExplorerActBuf /^\s*\d\+.\{2}a.*/
  22. syn match bufExplorerCurBuf /^\s*\d\+.%.*/
  23. syn match bufExplorerAltBuf /^\s*\d\+.#.*/
  24. syn match bufExplorerUnlBuf /^\s*\d\+u.*/
  25. syn match bufExplorerInactBuf /^\s*\d\+ \{7}.*/
  26. hi def link bufExplorerBufNbr Number
  27. hi def link bufExplorerMapping NonText
  28. hi def link bufExplorerHelp Special
  29. hi def link bufExplorerOpenIn Identifier
  30. hi def link bufExplorerSortBy String
  31. hi def link bufExplorerSplit NonText
  32. hi def link bufExplorerTitle NonText
  33. hi def link bufExplorerSortType bufExplorerSortBy
  34. hi def link bufExplorerToggleSplit bufExplorerSplit
  35. hi def link bufExplorerToggleOpen bufExplorerOpenIn
  36. hi def link bufExplorerActBuf Identifier
  37. hi def link bufExplorerAltBuf String
  38. hi def link bufExplorerCurBuf Type
  39. hi def link bufExplorerHidBuf Constant
  40. hi def link bufExplorerLockedBuf Special
  41. hi def link bufExplorerModBuf Exception
  42. hi def link bufExplorerUnlBuf Comment
  43. hi def link bufExplorerInactBuf Comment
  44. let b:current_syntax = "bufexplorer"
  45. let &cpo = s:cpo_save
  46. unlet! s:cpo_save