home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / unix / vim-6.2.tar.bz2 / vim-6.2.tar / vim62 / runtime / ftplugin / postscr.vim < prev    next >
Encoding:
Text File  |  2002-06-28  |  823 b   |  32 lines

  1. " Vim filetype plugin file
  2. " Language:     PostScript
  3. " Maintainer:   Mike Williams <mrw@eandem.co.uk>
  4. " Last Change:  27th June 2002
  5.  
  6. " Only do this when not done yet for this buffer
  7. if exists("b:did_ftplugin")
  8.   finish
  9. endif
  10.  
  11. " Don't load another plugin for this buffer
  12. let b:did_ftplugin = 1
  13.  
  14. " PS comment formatting
  15. setlocal comments=b:%
  16. setlocal formatoptions-=t formatoptions+=rol
  17.  
  18. " Define patterns for the matchit macro
  19. if !exists("b:match_words")
  20.   let b:match_ignorecase = 0
  21.   let b:match_words = '<<:>>,\<begin\>:\<end\>,\<save\>:\<restore\>,\<gsave\>:\<grestore\>'
  22. endif
  23.  
  24. set cpo-=C
  25.  
  26. " Define patterns for the browse file filter
  27. if has("gui_win32") && !exists("b:browsefilter")
  28.   let b:browsefilter = "PostScript Files (*.ps)\t*.ps\n" .
  29.     \ "EPS Files (*.eps)\t*.eps\n" .
  30.     \ "All Files (*.*)\t*.*\n"
  31. endif
  32.