Mercurial > vim
annotate runtime/ftplugin/xhtml.vim @ 31479:0c0b78aa7ae3 v9.0.1072
patch 9.0.1072: screenpos() column result in fold may be too small
Commit: https://github.com/vim/vim/commit/ba2d19193201277397c25c1f5a134ea042542555
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sun Dec 18 12:28:59 2022 +0000
patch 9.0.1072: screenpos() column result in fold may be too small
Problem: screenpos() column result in fold may be too small.
Solution: Add space of 'number', sign column, etc. (closes https://github.com/vim/vim/issues/11715)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 18 Dec 2022 13:30:05 +0100 |
parents | c968191a8557 |
children | 8ae680be2a51 |
rev | line source |
---|---|
7 | 1 " Vim filetype plugin file |
2 " Language: xhtml | |
28010 | 3 " |
4 " This runtime file is looking for a new maintainer. | |
5 " | |
6 " Former maintainer: Dan Sharp | |
2034 | 7 " Last Changed: 20 Jan 2009 |
7 | 8 |
9 if exists("b:did_ftplugin") | finish | endif | |
10 | |
11 " Make sure the continuation lines below do not cause problems in | |
12 " compatibility mode. | |
13 let s:save_cpo = &cpo | |
14 set cpo-=C | |
15 | |
16 " Define some defaults in case the included ftplugins don't set them. | |
17 let s:undo_ftplugin = "" | |
15 | 18 let s:browsefilter = "HTML Files (*.html, *.htm)\t*.html;*.htm\n" . |
7 | 19 \ "XML Files (*.xml)\t*.xml\n" . |
20 \ "All Files (*.*)\t*.*\n" | |
21 let s:match_words = "" | |
22 | |
23 runtime! ftplugin/xml.vim ftplugin/xml_*.vim ftplugin/xml/*.vim | |
24 unlet b:did_ftplugin | |
25 | |
26 " Override our defaults if these were set by an included ftplugin. | |
27 if exists("b:undo_ftplugin") | |
28 let s:undo_ftplugin = b:undo_ftplugin | |
29 unlet b:undo_ftplugin | |
30 endif | |
31 if exists("b:browsefilter") | |
32 let s:browsefilter = b:browsefilter | |
33 unlet b:browsefilter | |
34 endif | |
35 if exists("b:match_words") | |
36 let s:match_words = b:match_words | |
37 unlet b:match_words | |
38 endif | |
39 | |
40 runtime! ftplugin/html.vim ftplugin/html_*.vim ftplugin/html/*.vim | |
41 let b:did_ftplugin = 1 | |
42 | |
43 " Combine the new set of values with those previously included. | |
44 if exists("b:undo_ftplugin") | |
45 let s:undo_ftplugin = b:undo_ftplugin . " | " . s:undo_ftplugin | |
46 endif | |
47 if exists("b:browsefilter") | |
48 let s:browsefilter = b:browsefilter . s:browsefilter | |
49 endif | |
50 if exists("b:match_words") | |
51 let s:match_words = b:match_words . "," . s:match_words | |
52 endif | |
53 | |
54 " Load the combined list of match_words for matchit.vim | |
55 if exists("loaded_matchit") | |
56 let b:match_words = s:match_words | |
57 endif | |
58 | |
59 " Change the :browse e filter to primarily show tcsh-related files. | |
60 if has("gui_win32") | |
15 | 61 let b:browsefilter="XHTML files (*.xhtml, *.xhtm)\t*.xhtml;*.xhtm\n" . s:browsefilter |
7 | 62 endif |
63 | |
64 " Undo the stuff we changed. | |
65 let b:undo_ftplugin = "unlet! b:browsefilter b:match_words | " . s:undo_ftplugin | |
66 | |
67 " Restore the saved compatibility options. | |
68 let &cpo = s:save_cpo | |
3410
94601b379f38
Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents:
2034
diff
changeset
|
69 unlet s:save_cpo |