robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
ab20681c52
master
1" Vim filetype plugin file 2" Language: PostScript 3" Maintainer: Mike Williams <mrw@eandem.co.uk> 4" Last Change: 24th April 2012 5" 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 buffer 9if exists ( "b:did_ftplugin" ) 10finish 11endif 12 13" Don't load another plugin for this buffer 14let b: did_ftplugin = 1 15 16let s: cpo_save = & cpo 17set cpo & vim 18 19" PS comment formatting 20setlocal comments = b:% 21setlocal commentstring = %\ %s 22setlocal formatoptions -= tformatoptions += rol 23 24" Define patterns for the matchit macro 25if ! exists ( "b:match_words" ) 26let b: match_ignorecase = 0 27let b: match_words = '<<:>>,\<begin\>:\<end\>,\<save\>:\<restore\>,\<gsave\>:\<grestore\>' 28endif 29 30" Define patterns for the browse file filter 31if ( has ( "gui_win32" ) || has ( "gui_gtk" )) && ! exists ( "b:browsefilter" ) 32let b: browsefilter = "PostScript Files (*.ps)\t*.ps\n" . 33 \"EPS Files (*.eps)\t*.eps\n" 34if has ( "win32" ) 35let b: browsefilter .= "All Files (*.*)\t*\n" 36else 37let b: browsefilter .= "All Files (*)\t*\n" 38endif 39endif 40 41let b: undo_ftplugin = "setlocal comments< commentstring< formatoptions<" 42 \. "| unlet! b:browsefilter b:match_ignorecase b:match_words" 43 44let & cpo = s: cpo_save 45unlet s: cpo_save