Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 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 |