home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 February / OpenLinux 2.3 CD.iso / live / usr / share / vim / syntax / man.vim < prev    next >
Encoding:
Text File  |  1999-08-10  |  905 b   |  30 lines

  1. " Vim syntax file 
  2. " Language:     Man page
  3. " Maintainer:   Gautam H. Mudunuri <gmudunur@informatica.com>
  4. " Last change:  1998/3/20
  5. " Version Info: 
  6.  
  7. " clear any unwanted syntax defs
  8. syn clear
  9.  
  10. syn case ignore
  11. syn match  manReference       "[a-z][a-z0-9_]*([1-9][a-z]\{0,1})"
  12. syn match  manTitle           "^\i\+([0-9]\+[a-z]\=).*"
  13. syn match  manSectionHeading  "^[a-z][a-z ]*[a-z]$"
  14. syn match  manOptionDesc      "^\s*[+-][a-z0-9]\S*"
  15. " syn match  manHistory         "^[a-z].*last change.*$"
  16.  
  17. if !exists("did_man_syntax_inits")
  18.         let did_man_syntax_inits = 1
  19.         " The default methods for highlighting.  Can be overridden later
  20.         hi link manTitle           Title
  21.         hi link manSectionHeading  Statement
  22.         hi link manOptionDesc      Constant
  23.         " hi link manHistory         Comment
  24.         hi link manReference       PreProc
  25. endif
  26.  
  27. let b:current_syntax = "man"
  28.  
  29. " vim:ts=8
  30.