codekingpro/portable-devtools
114k
1" Vim filetype plugin file2" Language: PostScript3" Maintainer: Mike Williams <mrw@eandem.co.uk>4" Last Change: 24th April 20125" 2024 Jan 14 by Vim Project (browsefilter)6" 2025 Jun 08 by Riley Bruins <ribru17@gmail.com> ('commentstring')7 8" Only do this when not done yet for this buffer9if exists("b:did_ftplugin")10 finish11endif12 13" Don't load another plugin for this buffer14let b:did_ftplugin = 115 16let s:cpo_save = &cpo17set cpo&vim18 19" PS comment formatting20setlocal comments=b:%21setlocal commentstring=%\ %s22setlocal formatoptions-=t formatoptions+=rol23 24" Define patterns for the matchit macro25if !exists("b:match_words")26 let b:match_ignorecase = 027 let b:match_words = '<<:>>,\<begin\>:\<end\>,\<save\>:\<restore\>,\<gsave\>:\<grestore\>'28endif29 30" Define patterns for the browse file filter31if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")32 let b:browsefilter = "PostScript Files (*.ps)\t*.ps\n" .33 \ "EPS Files (*.eps)\t*.eps\n"34 if has("win32")35 let b:browsefilter .= "All Files (*.*)\t*\n"36 else37 let b:browsefilter .= "All Files (*)\t*\n"38 endif39endif40 41let b:undo_ftplugin = "setlocal comments< commentstring< formatoptions<"42 \ . "| unlet! b:browsefilter b:match_ignorecase b:match_words"43 44let &cpo = s:cpo_save45unlet s:cpo_save46 