annotate runtime/ftplugin/plaintex.vim @ 21783:483dc3fd596c v8.2.1441

patch 8.2.1441: running tests in tiny version gives error for summarize.vim Commit: https://github.com/vim/vim/commit/c771908681bc9ee7689d83e09104cf4c6f984326 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Aug 13 19:42:39 2020 +0200 patch 8.2.1441: running tests in tiny version gives error for summarize.vim Problem: Running tests in tiny version gives error for summarize.vim. Solution: Set 'cpoptions' to allow for line continuation. Restore redirecting test output to /dev/null.
author Bram Moolenaar <Bram@vim.org>
date Thu, 13 Aug 2020 19:45:04 +0200
parents 94601b379f38
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
799
6beb2c667935 updated for version 7.0b
vimboss
parents:
diff changeset
1 " plain TeX filetype plugin
6beb2c667935 updated for version 7.0b
vimboss
parents:
diff changeset
2 " Language: plain TeX (ft=plaintex)
6beb2c667935 updated for version 7.0b
vimboss
parents:
diff changeset
3 " Maintainer: Benji Fisher, Ph.D. <benji@member.AMS.org>
837
6bb1fa855dc9 updated for version 7.0e03
vimboss
parents: 799
diff changeset
4 " Version: 1.1
6bb1fa855dc9 updated for version 7.0e03
vimboss
parents: 799
diff changeset
5 " Last Change: Wed 19 Apr 2006
799
6beb2c667935 updated for version 7.0b
vimboss
parents:
diff changeset
6
6beb2c667935 updated for version 7.0b
vimboss
parents:
diff changeset
7 " Only do this when not done yet for this buffer.
6beb2c667935 updated for version 7.0b
vimboss
parents:
diff changeset
8 if exists("b:did_ftplugin")
6beb2c667935 updated for version 7.0b
vimboss
parents:
diff changeset
9 finish
6beb2c667935 updated for version 7.0b
vimboss
parents:
diff changeset
10 endif
6beb2c667935 updated for version 7.0b
vimboss
parents:
diff changeset
11
837
6bb1fa855dc9 updated for version 7.0e03
vimboss
parents: 799
diff changeset
12 " Start with initex. This will also define b:did_ftplugin and b:undo_ftplugin .
6bb1fa855dc9 updated for version 7.0e03
vimboss
parents: 799
diff changeset
13 source $VIMRUNTIME/ftplugin/initex.vim
799
6beb2c667935 updated for version 7.0b
vimboss
parents:
diff changeset
14
6beb2c667935 updated for version 7.0b
vimboss
parents:
diff changeset
15 " Avoid problems if running in 'compatible' mode.
6beb2c667935 updated for version 7.0b
vimboss
parents:
diff changeset
16 let s:save_cpo = &cpo
6beb2c667935 updated for version 7.0b
vimboss
parents:
diff changeset
17 set cpo&vim
6beb2c667935 updated for version 7.0b
vimboss
parents:
diff changeset
18
837
6bb1fa855dc9 updated for version 7.0e03
vimboss
parents: 799
diff changeset
19 let b:undo_ftplugin .= "| unlet! b:match_ignorecase b:match_skip b:match_words"
799
6beb2c667935 updated for version 7.0b
vimboss
parents:
diff changeset
20
6beb2c667935 updated for version 7.0b
vimboss
parents:
diff changeset
21 " Allow "[d" to be used to find a macro definition:
837
6bb1fa855dc9 updated for version 7.0e03
vimboss
parents: 799
diff changeset
22 let &l:define .= '\|\\new\(count\|dimen\|skip\|muskip\|box\|toks\|read\|write'
799
6beb2c667935 updated for version 7.0b
vimboss
parents:
diff changeset
23 \ . '\|fam\|insert\)'
6beb2c667935 updated for version 7.0b
vimboss
parents:
diff changeset
24
6beb2c667935 updated for version 7.0b
vimboss
parents:
diff changeset
25 " The following lines enable the macros/matchit.vim plugin for
6beb2c667935 updated for version 7.0b
vimboss
parents:
diff changeset
26 " extended matching with the % key.
6beb2c667935 updated for version 7.0b
vimboss
parents:
diff changeset
27 " There is no default meaning for \(...\) etc., but many users define one.
6beb2c667935 updated for version 7.0b
vimboss
parents:
diff changeset
28 if exists("loaded_matchit")
6beb2c667935 updated for version 7.0b
vimboss
parents:
diff changeset
29 let b:match_ignorecase = 0
6beb2c667935 updated for version 7.0b
vimboss
parents:
diff changeset
30 \ | let b:match_skip = 'r:\\\@<!\%(\\\\\)*%'
837
6bb1fa855dc9 updated for version 7.0e03
vimboss
parents: 799
diff changeset
31 \ | let b:match_words = '(:),\[:],{:},\\(:\\),\\\[:\\],\\{:\\}'
799
6beb2c667935 updated for version 7.0b
vimboss
parents:
diff changeset
32 endif " exists("loaded_matchit")
6beb2c667935 updated for version 7.0b
vimboss
parents:
diff changeset
33
6beb2c667935 updated for version 7.0b
vimboss
parents:
diff changeset
34 let &cpo = s:save_cpo
3410
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 837
diff changeset
35 unlet s:save_cpo
799
6beb2c667935 updated for version 7.0b
vimboss
parents:
diff changeset
36
6beb2c667935 updated for version 7.0b
vimboss
parents:
diff changeset
37 " vim:sts=2:sw=2: