Mercurial > vim
annotate runtime/ftplugin/tex.vim @ 36557:9f484a1841eb draft v9.1.0864
patch 9.1.0864: message history is fixed to 200
Commit: https://github.com/vim/vim/commit/4bd9b2b2467e696061104a029000e9824c6c609e
Author: Shougo Matsushita <Shougo.Matsu@gmail.com>
Date: Thu Nov 14 22:31:48 2024 +0100
patch 9.1.0864: message history is fixed to 200
Problem: message history is fixed to 200
Solution: Add the 'msghistory' option, increase the default
value to 500 (Shougo Matsushita)
closes: #16048
Co-authored-by: Milly <milly.ca@gmail.com>
Signed-off-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 14 Nov 2024 22:45:04 +0100 |
parents | 11b656e74444 |
children |
rev | line source |
---|---|
7 | 1 " LaTeX filetype plugin |
2 " Language: LaTeX (ft=tex) | |
3 " Maintainer: Benji Fisher, Ph.D. <benji@member.AMS.org> | |
837 | 4 " Version: 1.4 |
5 " Last Change: Wed 19 Apr 2006 | |
7 | 6 " URL: http://www.vim.org/script.php?script_id=411 |
7 | |
799 | 8 " Only do this when not done yet for this buffer. |
7 | 9 if exists("b:did_ftplugin") |
10 finish | |
11 endif | |
12 | |
799 | 13 " Start with plain TeX. This will also define b:did_ftplugin . |
14 source $VIMRUNTIME/ftplugin/plaintex.vim | |
7 | 15 |
799 | 16 " Avoid problems if running in 'compatible' mode. |
7 | 17 let s:save_cpo = &cpo |
18 set cpo&vim | |
19 | |
837 | 20 let b:undo_ftplugin .= "| setl inex<" |
21 | |
7 | 22 " Allow "[d" to be used to find a macro definition: |
23 " Recognize plain TeX \def as well as LaTeX \newcommand and \renewcommand . | |
24 " I may as well add the AMS-LaTeX DeclareMathOperator as well. | |
799 | 25 let &l:define .= '\|\\\(re\)\=new\(boolean\|command\|counter\|environment\|font' |
7 | 26 \ . '\|if\|length\|savebox\|theorem\(style\)\=\)\s*\*\=\s*{\=' |
27 \ . '\|DeclareMathOperator\s*{\=\s*' | |
28 | |
29 " Tell Vim how to recognize LaTeX \include{foo} and plain \input bar : | |
799 | 30 let &l:include .= '\|\\include{' |
25773 | 31 " On some file systems, "{" and "}" are included in 'isfname'. In case the |
7 | 32 " TeX file has \include{fname} (LaTeX only), strip everything except "fname". |
33 let &l:includeexpr = "substitute(v:fname, '^.\\{-}{\\|}.*', '', 'g')" | |
34 | |
35 " The following lines enable the macros/matchit.vim plugin for | |
36 " extended matching with the % key. | |
799 | 37 " ftplugin/plaintex.vim already defines b:match_skip and b:match_ignorecase |
837 | 38 " and matches \(, \), \[, \], \{, and \} . |
7 | 39 if exists("loaded_matchit") |
837 | 40 let b:match_words .= ',\\begin\s*\({\a\+\*\=}\):\\end\s*\1' |
7 | 41 endif " exists("loaded_matchit") |
42 | |
43 let &cpo = s:save_cpo | |
3410
94601b379f38
Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents:
837
diff
changeset
|
44 unlet s:save_cpo |
7 | 45 |
46 " vim:sts=2:sw=2: |