annotate runtime/ftplugin/diff.vim @ 35225:f8e7e00787b5 default tip

runtime(vb): update vb indent plugin as vim9script Commit: https://github.com/vim/vim/commit/af2254d2f3c1c59add065363dccb53ddb0edadf5 Author: Michael Soyka <mssr953@gmail.com> Date: Mon May 20 14:37:50 2024 +0200 runtime(vb): update vb indent plugin as vim9script Include an updated vb indent script using vim9script. Also update the runtime indent test files Signed-off-by: Michael Soyka <mssr953@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Mon, 20 May 2024 14:45:02 +0200
parents 8ae680be2a51
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
446
7472c565592a updated for version 7.0117
vimboss
parents:
diff changeset
1 " Vim filetype plugin file
7472c565592a updated for version 7.0117
vimboss
parents:
diff changeset
2 " Language: Diff
32770
4027cefc2aab Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents: 26148
diff changeset
3 " Maintainer: The Vim Project <https://github.com/vim/vim>
34134
8ae680be2a51 runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents: 32770
diff changeset
4 " Last Change: 2023 Aug 22
32770
4027cefc2aab Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents: 26148
diff changeset
5 " Former Maintainer: Bram Moolenaar <Bram@vim.org>
446
7472c565592a updated for version 7.0117
vimboss
parents:
diff changeset
6
7472c565592a updated for version 7.0117
vimboss
parents:
diff changeset
7 " Only do this when not done yet for this buffer
7472c565592a updated for version 7.0117
vimboss
parents:
diff changeset
8 if exists("b:did_ftplugin")
7472c565592a updated for version 7.0117
vimboss
parents:
diff changeset
9 finish
7472c565592a updated for version 7.0117
vimboss
parents:
diff changeset
10 endif
7472c565592a updated for version 7.0117
vimboss
parents:
diff changeset
11 let b:did_ftplugin = 1
7472c565592a updated for version 7.0117
vimboss
parents:
diff changeset
12
26148
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 21499
diff changeset
13 let b:undo_ftplugin = "setl modeline< commentstring<"
446
7472c565592a updated for version 7.0117
vimboss
parents:
diff changeset
14
7472c565592a updated for version 7.0117
vimboss
parents:
diff changeset
15 " Don't use modelines in a diff, they apply to the diffed file
7472c565592a updated for version 7.0117
vimboss
parents:
diff changeset
16 setlocal nomodeline
21499
3a1ed539ae2a Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 446
diff changeset
17
3a1ed539ae2a Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 446
diff changeset
18 " If there are comments they start with #
26148
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 21499
diff changeset
19 let &l:commentstring = "# %s"
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 21499
diff changeset
20
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 21499
diff changeset
21 if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
34134
8ae680be2a51 runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents: 32770
diff changeset
22 let b:browsefilter = "Diff Files (*.diff)\t*.diff\nPatch Files (*.patch)\t*.h\n"
8ae680be2a51 runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents: 32770
diff changeset
23 if has("win32")
8ae680be2a51 runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents: 32770
diff changeset
24 let b:browsefilter ..= "All Files (*.*)\t*\n"
8ae680be2a51 runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents: 32770
diff changeset
25 else
8ae680be2a51 runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents: 32770
diff changeset
26 let b:browsefilter ..= "All Files (*)\t*\n"
8ae680be2a51 runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents: 32770
diff changeset
27 endif
26148
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 21499
diff changeset
28 let b:undo_ftplugin ..= " | unlet! b:browsefilter"
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 21499
diff changeset
29 endif