Mercurial > vim
annotate runtime/ftplugin/dtd.vim @ 35285:d10d4f662b4b default tip
runtime(doc): Add ft_hare.txt to Reference Manual TOC
Commit: https://github.com/vim/vim/commit/0bdc5d8241335c3451f629eed7a3734021d41679
Author: h-east <h.east.727@gmail.com>
Date: Mon May 27 17:12:57 2024 +0200
runtime(doc): Add ft_hare.txt to Reference Manual TOC
while at it, also re-align ft_context.txt with the rest of the
list.
closes: #14863
Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 27 May 2024 17:30:03 +0200 |
parents | 8ae680be2a51 |
children |
rev | line source |
---|---|
7 | 1 " Vim filetype plugin file |
34134
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
28010
diff
changeset
|
2 " Language: dtd |
28010 | 3 " |
4 " This runtime file is looking for a new maintainer. | |
5 " | |
6 " Former maintainer: Dan Sharp | |
34134
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
28010
diff
changeset
|
7 " Last Change: 2009 Jan 20 |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
28010
diff
changeset
|
8 " 2024 Jan 14 by Vim Project (browsefilter) |
7 | 9 |
10 if exists("b:did_ftplugin") | finish | endif | |
11 let b:did_ftplugin = 1 | |
12 | |
13 " Make sure the continuation lines below do not cause problems in | |
14 " compatibility mode. | |
15 let s:save_cpo = &cpo | |
16 set cpo-=C | |
17 | |
18 setlocal commentstring=<!--%s--> | |
1698 | 19 setlocal comments=s:<!--,m:\ \ \ \ \ ,e:--> |
20 | |
21 setlocal formatoptions-=t | |
22 if !exists("g:ft_dtd_autocomment") || (g:ft_dtd_autocomment == 1) | |
23 setlocal formatoptions+=croql | |
24 endif | |
7 | 25 |
26 if exists("loaded_matchit") | |
27 let b:match_words = '<!--:-->,<!:>' | |
28 endif | |
29 | |
30 " Change the :browse e filter to primarily show Java-related files. | |
34134
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
28010
diff
changeset
|
31 if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter") |
7 | 32 let b:browsefilter="DTD Files (*.dtd)\t*.dtd\n" . |
34134
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
28010
diff
changeset
|
33 \ "XML Files (*.xml)\t*.xml\n" |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
28010
diff
changeset
|
34 if has("win32") |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
28010
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:
28010
diff
changeset
|
36 else |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
28010
diff
changeset
|
37 let b:browsefilter .= "All Files (*)\t*\n" |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
28010
diff
changeset
|
38 endif |
7 | 39 endif |
40 | |
41 " Undo the stuff we changed. | |
1698 | 42 let b:undo_ftplugin = "setlocal commentstring< comments< formatoptions<" . |
7 | 43 \ " | unlet! b:matchwords b:browsefilter" |
44 | |
45 " Restore the saved compatibility options. | |
46 let &cpo = s:save_cpo | |
3410
94601b379f38
Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents:
2034
diff
changeset
|
47 unlet s:save_cpo |