blob: 56f4e249cf1f1903eab405cc09fa438133a9c351 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" 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
7if exists("b:did_ftplugin")
8 finish
9endif
10
11" Don't load another plugin for this buffer
12let b:did_ftplugin = 1
13
14" PS comment formatting
15setlocal comments=b:%
16setlocal formatoptions-=t formatoptions+=rol
17
18" Define patterns for the matchit macro
19if !exists("b:match_words")
20 let b:match_ignorecase = 0
21 let b:match_words = '<<:>>,\<begin\>:\<end\>,\<save\>:\<restore\>,\<gsave\>:\<grestore\>'
22endif
23
24set cpo-=C
25
26" Define patterns for the browse file filter
27if 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"
31endif