Mercurial > vim
annotate runtime/ftplugin/postscr.vim @ 35288:e0701cae97d4 default tip
Added tag v9.1.0448 for changeset b68266606e8434409a5b8fd532bc7d801b292737
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 29 May 2024 08:00:05 +0200 |
parents | 8ae680be2a51 |
children |
rev | line source |
---|---|
7 | 1 " Vim filetype plugin file |
3281 | 2 " Language: PostScript |
3 " Maintainer: Mike Williams <mrw@eandem.co.uk> | |
34134
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
3493
diff
changeset
|
4 " Last Change: 24th April 2012 |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
3493
diff
changeset
|
5 " 2024 Jan 14 by Vim Project (browsefilter) |
7 | 6 |
7 " Only do this when not done yet for this buffer | |
8 if exists("b:did_ftplugin") | |
9 finish | |
10 endif | |
11 | |
12 " Don't load another plugin for this buffer | |
13 let b:did_ftplugin = 1 | |
14 | |
3281 | 15 let s:cpo_save = &cpo |
16 set cpo&vim | |
17 | |
7 | 18 " PS comment formatting |
19 setlocal comments=b:% | |
20 setlocal formatoptions-=t formatoptions+=rol | |
21 | |
22 " Define patterns for the matchit macro | |
23 if !exists("b:match_words") | |
24 let b:match_ignorecase = 0 | |
25 let b:match_words = '<<:>>,\<begin\>:\<end\>,\<save\>:\<restore\>,\<gsave\>:\<grestore\>' | |
26 endif | |
27 | |
28 " Define patterns for the browse file filter | |
34134
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
3493
diff
changeset
|
29 if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter") |
7 | 30 let b:browsefilter = "PostScript Files (*.ps)\t*.ps\n" . |
34134
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
3493
diff
changeset
|
31 \ "EPS Files (*.eps)\t*.eps\n" |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
3493
diff
changeset
|
32 if has("win32") |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
3493
diff
changeset
|
33 let b:browsefilter .= "All Files (*.*)\t*\n" |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
3493
diff
changeset
|
34 else |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
3493
diff
changeset
|
35 let b:browsefilter .= "All Files (*)\t*\n" |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
3493
diff
changeset
|
36 endif |
7 | 37 endif |
3281 | 38 |
3493
1be42b88900e
Updated runtime files, include fixes for line continuation.
Bram Moolenaar <bram@vim.org>
parents:
3492
diff
changeset
|
39 let b:undo_ftplugin = "setlocal comments< formatoptions<" |
34134
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
3493
diff
changeset
|
40 \ . "| unlet! b:browsefilter b:match_ignorecase b:match_words" |
3493
1be42b88900e
Updated runtime files, include fixes for line continuation.
Bram Moolenaar <bram@vim.org>
parents:
3492
diff
changeset
|
41 |
3281 | 42 let &cpo = s:cpo_save |
43 unlet s:cpo_save |